pub trait Channel: Send + Sized {
type Event: Send;
type Handle: Send + Clone + Shutdown;
type Inbox: Send + Sync;
type Metric: Collector + Clone;
// Required method
fn channel<T>(
self,
scope_id: ScopeId,
) -> (Self::Handle, Self::Inbox, AbortRegistration, Option<Self::Metric>, Option<Box<dyn Route<Self::Event>>>);
// Provided method
fn type_name() -> Cow<'static, str> { ... }
}
Expand description
Defines a channel which becomes a sender and receiver half
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.