ForbidOutboundMessages and ForbidInboundMessages (#735)

This commit is contained in:
Svyatoslav Nikolsky
2021-02-17 15:09:02 +03:00
committed by Bastian Köcher
parent 470b51d2a9
commit 85bb45b5d3
3 changed files with 91 additions and 0 deletions
+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);