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