[][src]Struct apis::channel::Channel

pub struct Channel<CTX: Context> {
    pub def: Def<CTX>,
    pub sourcepoints: VecMap<Box<dyn Sourcepoint<CTX>>>,
    pub endpoints: VecMap<Box<dyn Endpoint<CTX>>>,
}

Main channel struct.

Fields

def: Def<CTX>sourcepoints: VecMap<Box<dyn Sourcepoint<CTX>>>endpoints: VecMap<Box<dyn Endpoint<CTX>>>

Trait Implementations

impl<CTX, M> From<Simplex<CTX, M>> for Channel<CTX> where
    CTX: Context,
    M: Message<CTX> + 'static, 
[src]

impl<CTX, M> From<Sink<CTX, M>> for Channel<CTX> where
    CTX: Context,
    M: Message<CTX> + 'static, 
[src]

impl<CTX, M> From<Source<CTX, M>> for Channel<CTX> where
    CTX: Context,
    M: Message<CTX> + 'static, 
[src]

Auto Trait Implementations

impl<CTX> !RefUnwindSafe for Channel<CTX>

impl<CTX> Send for Channel<CTX> where
    <CTX as Context>::CID: Send,
    <CTX as Context>::MID: Send,
    <CTX as Context>::PID: Send

impl<CTX> !Sync for Channel<CTX>

impl<CTX> Unpin for Channel<CTX> where
    <CTX as Context>::CID: Unpin,
    <CTX as Context>::MID: Unpin,
    <CTX as Context>::PID: Unpin

impl<CTX> !UnwindSafe for Channel<CTX>

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.