Struct carrier_pigeon::OptionPendingClient
source · [−]pub struct OptionPendingClient { /* private fields */ }
Expand description
An optional version of the PendingClient
.
Get a OptionPendingClient
with the option()
method of the PendingClient
,
or with the Into
/From
traits.
Represents a pending client that could have been received already. This type is useful when you can only get a mutable reference to this (not own it).
The most notable difference is the take
method only takes &mut self
, instead of self
,
and the returns from most methods are wrapped in an option.
Implementations
Trait Implementations
sourceimpl Debug for OptionPendingClient
impl Debug for OptionPendingClient
sourceimpl Display for OptionPendingClient
impl Display for OptionPendingClient
sourceimpl Into<OptionPendingClient> for PendingClient
impl Into<OptionPendingClient> for PendingClient
sourcefn into(self) -> OptionPendingClient
fn into(self) -> OptionPendingClient
Converts this type into the (usually inferred) input type.
Auto Trait Implementations
impl RefUnwindSafe for OptionPendingClient
impl Send for OptionPendingClient
impl Sync for OptionPendingClient
impl Unpin for OptionPendingClient
impl UnwindSafe for OptionPendingClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more