std::sync::mpmc::channel
pub fn channel<T>() -> (Sender<T>, Receiver<T>)
- Kind
- function
- Module
std::sync::mpmc
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::sync::mpmc in the Rust reference. This page has 30 cards.
pub fn channel<T>() -> (Sender<T>, Receiver<T>)
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct IntoIter<T>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Iter<'a, T: 'a>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Receiver<T>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn capacity(&self) -> Option<usize>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_disconnected(&self) -> bool
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_empty(&self) -> bool
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_full(&self) -> bool
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn iter(&self) -> Iter<'_, T>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn len(&self) -> usize
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn recv(&self) -> Result<T, RecvError>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn recv_deadline(&self, deadline: Instant) -> Result<T, RecvTimeoutError>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn recv_timeout(&self, timeout: Duration) -> Result<T, RecvTimeoutError>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn same_channel(&self, other: &Receiver<T>) -> bool
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_iter(&self) -> TryIter<'_, T>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_recv(&self) -> Result<T, TryRecvError>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Sender<T>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn capacity(&self) -> Option<usize>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_disconnected(&self) -> bool
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_empty(&self) -> bool
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_full(&self) -> bool
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn len(&self) -> usize
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn same_channel(&self, other: &Sender<T>) -> bool
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn send(&self, msg: T) -> Result<(), SendError<T>>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn send_deadline( &self, msg: T, deadline: Instant, ) -> Result<(), SendTimeoutError<T>>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn send_timeout( &self, msg: T, timeout: Duration, ) -> Result<(), SendTimeoutError<T>>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_send(&self, msg: T) -> Result<(), TrySendError<T>>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub enum SendTimeoutError<T>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn sync_channel<T>(cap: usize) -> (Sender<T>, Receiver<T>)
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct TryIter<'a, T: 'a>
std::sync::mpmcSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.