pub trait Channel: Send + Sized {
    type Event: Send;
    type Handle: Send + Clone + Shutdown;
    type Inbox: Send + Sync;
    type Metric: Collector + Clone;

    fn channel<T>(
        self,
        scope_id: ScopeId
    ) -> (Self::Handle, Self::Inbox, AbortRegistration, Option<Self::Metric>, Option<Box<dyn Route<Self::Event>>>); fn type_name() -> Cow<'static, str> { ... } }
Expand description

Defines a channel which becomes a sender and receiver half

Required Associated Types

The channel Event type

The sender half of the channel

The receiver half of the channel

Metric Collector

Required Methods

Create a sender and receiver of the appropriate types

Provided Methods

Get this channel’s name

Implementations on Foreign Types

Implementors