pub enum InputSize {
Unknown,
Exact(u64),
}Expand description
How much input a frame will carry, when that is known in advance.
The frame header records the frame’s size, so a session of unknown size holds all of its input until it ends; a declared size lets it hold only the current chunk. The frame fails if the input differs from a declared size.
§Examples
use mopenzl::InputSize;
assert_eq!(InputSize::default(), InputSize::Unknown);
assert_eq!(InputSize::from(4096u64), InputSize::Exact(4096));Variants§
Trait Implementations§
impl Copy for InputSize
impl Eq for InputSize
Source§impl From<InputSize> for StreamConfig
impl From<InputSize> for StreamConfig
impl StructuralPartialEq for InputSize
Auto Trait Implementations§
impl Forget for InputSize
impl Freeze for InputSize
impl Move for InputSize
impl RefUnwindSafe for InputSize
impl Send for InputSize
impl Sync for InputSize
impl Unpin for InputSize
impl UnsafeUnpin for InputSize
impl UnwindSafe for InputSize
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more