[][src]Struct dialectic::Available

pub struct Available<C>(_);

An available 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 Available on the type of the connection which is present for each part of the split, and Unavailable on the type of the connection which is not.

Whenever C implements Transmit or Receive, so does Available<C>.

Implementations

impl<C> Available<C>[src]

pub fn into_inner(self) -> C[src]

Retrieve the inner C connection.

Trait Implementations

impl<C> AsMut<C> for Available<C>[src]

impl<C> AsRef<C> for Available<C>[src]

impl<C: Clone> Clone for Available<C>[src]

impl<C: Copy> Copy for Available<C>[src]

impl<C: Debug> Debug for Available<C>[src]

impl<C: Default> Default for Available<C>[src]

impl<C: Eq> Eq for Available<C>[src]

impl<C: Hash> Hash for Available<C>[src]

impl<C: PartialEq> PartialEq<Available<C>> for Available<C>[src]

impl<C: PartialOrd> PartialOrd<Available<C>> for Available<C>[src]

impl<T, C> Receive<T> for Available<C> where
    C: Receive<T>, 
[src]

type Error = C::Error

The type of possible errors when receiving.

impl<C> StructuralEq for Available<C>[src]

impl<C> StructuralPartialEq for Available<C>[src]

impl<T, Convention: CallingConvention, C> Transmit<T, Convention> for Available<C> where
    C: Transmit<T, Convention>, 
[src]

type Error = C::Error

The type of possible errors when sending.

Auto Trait Implementations

impl<C> RefUnwindSafe for Available<C> where
    C: RefUnwindSafe
[src]

impl<C> Send for Available<C> where
    C: Send
[src]

impl<C> Sync for Available<C> where
    C: Sync
[src]

impl<C> Unpin for Available<C> where
    C: Unpin
[src]

impl<C> UnwindSafe for Available<C> where
    C: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> CallBy<'a, Mut> for T where
    T: 'a, 
[src]

type Type = &'a mut T

The type of Self when called by Convention.

impl<'a, T> CallBy<'a, Ref> for T where
    T: 'a, 
[src]

type Type = &'a T

The type of Self when called by Convention.

impl<'a, T> CallBy<'a, Val> for T[src]

type Type = T

The type of Self when called by Convention.

impl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.