pub struct ChainedHostAnswers<T, U> { /* private fields */ }Expand description
A composite HostAnswers that chains two HostAnswers instances together.
Implementations§
Source§impl<T, U> ChainedHostAnswers<T, U>
impl<T, U> ChainedHostAnswers<T, U>
Sourcepub const fn new(first: T, second: U) -> Self
pub const fn new(first: T, second: U) -> Self
Create a new ChainedHostAnswers instance from two HostAnswers instances.
Sourcepub fn chain<V>(self, answers: V) -> ChainedHostAnswers<V, Self>
pub fn chain<V>(self, answers: V) -> ChainedHostAnswers<V, Self>
Chains this instance with another HostAnswers instance,
Trait Implementations§
Source§impl<T, U> HostAnswers for ChainedHostAnswers<T, U>where
T: HostAnswers,
U: HostAnswers,
impl<T, U> HostAnswers for ChainedHostAnswers<T, U>where
T: HostAnswers,
U: HostAnswers,
Auto Trait Implementations§
impl<T, U> Freeze for ChainedHostAnswers<T, U>
impl<T, U> RefUnwindSafe for ChainedHostAnswers<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for ChainedHostAnswers<T, U>
impl<T, U> Sync for ChainedHostAnswers<T, U>
impl<T, U> Unpin for ChainedHostAnswers<T, U>
impl<T, U> UnwindSafe for ChainedHostAnswers<T, U>where
T: UnwindSafe,
U: 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<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.