pub struct ChainedHostQuestions<T, U> { /* private fields */ }Expand description
A composite HostQuestions that chains two HostQuestions instances together.
Implementations§
Source§impl<T, U> ChainedHostQuestions<T, U>
impl<T, U> ChainedHostQuestions<T, U>
Sourcepub const fn new(first: T, second: U) -> Self
pub const fn new(first: T, second: U) -> Self
Create a new ChainedHostQuestions instance from two HostQuestions instances.
Sourcepub fn chain<V>(self, answers: V) -> ChainedHostQuestions<V, Self>
pub fn chain<V>(self, answers: V) -> ChainedHostQuestions<V, Self>
Chains this instance with another HostQuestions instance,
Trait Implementations§
Source§impl<T, U> HostQuestions for ChainedHostQuestions<T, U>where
T: HostQuestions,
U: HostQuestions,
impl<T, U> HostQuestions for ChainedHostQuestions<T, U>where
T: HostQuestions,
U: HostQuestions,
Auto Trait Implementations§
impl<T, U> Freeze for ChainedHostQuestions<T, U>
impl<T, U> RefUnwindSafe for ChainedHostQuestions<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for ChainedHostQuestions<T, U>
impl<T, U> Sync for ChainedHostQuestions<T, U>
impl<T, U> Unpin for ChainedHostQuestions<T, U>
impl<T, U> UnwindSafe for ChainedHostQuestions<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.