ForbidOutboundMessages and ForbidInboundMessages (#735)

This commit is contained in:
Svyatoslav Nikolsky authored and Bastian Köcher committed 2024-04-10 10:28:37 +02:00
1 parent 470b51d2a9
commit 85bb45b5d3
3 files changed
+91

No files matched your search

+6
View File
@@ -112,6 +112,12 @@ pub trait Size {
fn size_hint(&self) -> u32;
}
impl Size for () {
fn size_hint(&self) -> u32 {
0
}
}
/// Pre-computed size.
pub struct PreComputedSize(pub usize);