pub trait JoinQueue<T: Send + 'static> {
type Sender: JoinSender<T> + Clone + Send + 'static;
type Receiver: JoinReceiver<T> + Send + 'static;
// Required method
fn split(self) -> (Self::Sender, Self::Receiver);
}Expand description
A bounded fan-in queue that can be split into a sender/receiver pair.
Required Associated Types§
type Sender: JoinSender<T> + Clone + Send + 'static
type Receiver: JoinReceiver<T> + Send + 'static
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".