pub struct Unavailable { /* private fields */ }Expand description
A placeholder for a missing Transmit or Receive end of a connection.
When using split, the resultant two channels can only send or only receive,
respectively. This is reflected at the type level by the presence of Unavailable on the type
of the connection which is not present for each part of the split.
Trait Implementations§
Source§fn clone(&self) -> Unavailable
fn clone(&self) -> Unavailable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn default() -> Unavailable
fn default() -> Unavailable
Returns the “default value” for a type. Read more
Source§fn cmp(&self, other: &Unavailable) -> Ordering
fn cmp(&self, other: &Unavailable) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Auto Trait Implementations§
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