pub enum AuxBoxData<T> {
Data(T),
Decoding,
NotFound,
}
Expand description
Auxiliary box data.
Variants§
Data(T)
The box has data.
Decoding
The box has not been decoded yet.
NotFound
The box was not found.
Implementations§
Source§impl<T> AuxBoxData<T>
impl<T> AuxBoxData<T>
Source§impl<T, E> AuxBoxData<Result<T, E>>
impl<T, E> AuxBoxData<Result<T, E>>
pub fn transpose(self) -> Result<AuxBoxData<T>, E>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for AuxBoxData<T>where
T: Freeze,
impl<T> RefUnwindSafe for AuxBoxData<T>where
T: RefUnwindSafe,
impl<T> Send for AuxBoxData<T>where
T: Send,
impl<T> Sync for AuxBoxData<T>where
T: Sync,
impl<T> Unpin for AuxBoxData<T>where
T: Unpin,
impl<T> UnwindSafe for AuxBoxData<T>where
T: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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