std::sync::mpsc::channel
pub fn channel<T>() -> (Sender<T>, Receiver<T>)
- Kind
- function
- Module
std::sync::mpsc- Since
- 1.0.0
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::mpsc in the Rust reference. This page has 24 cards.
pub fn channel<T>() -> (Sender<T>, Receiver<T>)
std::sync::mpscSource: 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::mpscSource: 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::mpscSource: 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::mpscSource: 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::mpscSource: 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::mpscSource: 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::mpscSource: 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::mpscSource: 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::mpscSource: 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::mpscSource: 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::mpscSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct RecvError
std::sync::mpscSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub enum RecvTimeoutError
std::sync::mpscSource: 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::mpscSource: 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::mpscSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn send(&self, t: T) -> Result<(), SendError<T>>
std::sync::mpscSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct SendError<T>(pub T)
std::sync::mpscSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn sync_channel<T>(bound: usize) -> (SyncSender<T>, Receiver<T>)
std::sync::mpscSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct SyncSender<T>
std::sync::mpscSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn send(&self, t: T) -> Result<(), SendError<T>>
std::sync::mpscSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_send(&self, t: T) -> Result<(), TrySendError<T>>
std::sync::mpscSource: 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::mpscSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub enum TryRecvError
std::sync::mpscSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub enum TrySendError<T>
std::sync::mpscSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.