Struct party_types::Tx[][src]

pub struct Tx<Role, T, Cont> { /* fields omitted */ }

Receive a value T from the given Role

Implementations

impl<Role, T: Send + 'static, Cont> Tx<Role, T, Cont>[src]

pub fn send<Tr: Transport>(
    self,
    channel: &mut Channel<Role, Tr>,
    value: T
) -> Result<Cont>
[src]

Trait Implementations

impl<Role, T, Cont: Default> Default for Tx<Role, T, Cont>[src]

Auto Trait Implementations

impl<Role, T, Cont> RefUnwindSafe for Tx<Role, T, Cont> where
    Cont: RefUnwindSafe,
    Role: RefUnwindSafe,
    T: RefUnwindSafe

impl<Role, T, Cont> Send for Tx<Role, T, Cont> where
    Cont: Send,
    Role: Send,
    T: Send

impl<Role, T, Cont> Sync for Tx<Role, T, Cont> where
    Cont: Sync,
    Role: Sync,
    T: Sync

impl<Role, T, Cont> Unpin for Tx<Role, T, Cont> where
    Cont: Unpin,
    Role: Unpin,
    T: Unpin

impl<Role, T, Cont> UnwindSafe for Tx<Role, T, Cont> where
    Cont: UnwindSafe,
    Role: UnwindSafe,
    T: UnwindSafe

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<T> From<T> for T[src]

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

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.