pub struct Chain<S, T>(/* private fields */)
where
S: AsyncDecode;Expand description
Chain two decoders, running them in sequence.
Implementations§
Trait Implementations§
Source§impl<S, T> AsyncDecode for Chain<S, T>
impl<S, T> AsyncDecode for Chain<S, T>
Source§type Item = (<S as AsyncDecode>::Item, <T as AsyncDecode>::Item)
type Item = (<S as AsyncDecode>::Item, <T as AsyncDecode>::Item)
The type of the value to decode.
Source§type Error = <S as AsyncDecode>::Error
type Error = <S as AsyncDecode>::Error
An error indicating how decoding can fail.
Auto Trait Implementations§
impl<S, T> Freeze for Chain<S, T>
impl<S, T> RefUnwindSafe for Chain<S, T>
impl<S, T> Send for Chain<S, T>
impl<S, T> Sync for Chain<S, T>
impl<S, T> Unpin for Chain<S, T>
impl<S, T> UnwindSafe for Chain<S, T>
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