pub struct BaseReceiverAsync<T, S>where
T: Sized,
S: ChannelStorage<T>,{ /* private fields */ }Expand description
Base async receiver
Implementations§
Source§impl<T, S> BaseReceiverAsync<T, S>where
T: Sized,
S: ChannelStorage<T>,
impl<T, S> BaseReceiverAsync<T, S>where
T: Sized,
S: ChannelStorage<T>,
Sourcepub fn recv_blocking(&self) -> Result<T>
pub fn recv_blocking(&self) -> Result<T>
Receives a value from the channel in a blocking (synchronous) way
Sourcepub fn recv_blocking_timeout(&self, timeout: Duration) -> Result<T>
pub fn recv_blocking_timeout(&self, timeout: Duration) -> Result<T>
Receives a value from the channel in a blocking (synchronous) way with a given timeout
Trait Implementations§
Source§impl<T, S> Clone for BaseReceiverAsync<T, S>where
T: Sized,
S: ChannelStorage<T>,
impl<T, S> Clone for BaseReceiverAsync<T, S>where
T: Sized,
S: ChannelStorage<T>,
Source§impl<T, S> Drop for BaseReceiverAsync<T, S>where
T: Sized,
S: ChannelStorage<T>,
impl<T, S> Drop for BaseReceiverAsync<T, S>where
T: Sized,
S: ChannelStorage<T>,
Source§impl<T, S> PartialEq for BaseReceiverAsync<T, S>
impl<T, S> PartialEq for BaseReceiverAsync<T, S>
impl<T, S> Eq for BaseReceiverAsync<T, S>
impl<T, S> StructuralPartialEq for BaseReceiverAsync<T, S>where
T: Sized,
S: ChannelStorage<T>,
Auto Trait Implementations§
impl<T, S> Freeze for BaseReceiverAsync<T, S>
impl<T, S> !RefUnwindSafe for BaseReceiverAsync<T, S>
impl<T, S> Send for BaseReceiverAsync<T, S>
impl<T, S> Sync for BaseReceiverAsync<T, S>
impl<T, S> Unpin for BaseReceiverAsync<T, S>
impl<T, S> !UnwindSafe for BaseReceiverAsync<T, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more