pub enum Inflated {
Ok(Vec<u8>),
TooLarge(u64),
Error(String),
}Expand description
The outcome of inflating one member under a byte cap.
Variants§
Ok(Vec<u8>)
The member inflated within the cap.
TooLarge(u64)
The member overran the cap. Carries the bytes inflated before the cap tripped, so a cumulative counter can charge them.
Error(String)
The member could not be read.
Auto Trait Implementations§
impl Freeze for Inflated
impl RefUnwindSafe for Inflated
impl Send for Inflated
impl Sync for Inflated
impl Unpin for Inflated
impl UnsafeUnpin for Inflated
impl UnwindSafe for Inflated
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more