pub struct BroadcastReceiver<T> { /* private fields */ }Expand description
Broadcast queue receiver
Implementations§
Source§impl<T> BroadcastReceiver<T>where
T: Clone,
impl<T> BroadcastReceiver<T>where
T: Clone,
Sourcepub async fn recv_async(&mut self) -> Result<T, UnboundedRecvError>
pub async fn recv_async(&mut self) -> Result<T, UnboundedRecvError>
Asynchronously receives a value
§Errors
Will return Err if the upstream sender has been disconnected.
Sourcepub async fn clone_async(&self) -> Self
pub async fn clone_async(&self) -> Self
Asynchronously clones this handle
Trait Implementations§
Source§impl<T> Clone for BroadcastReceiver<T>where
T: Clone,
impl<T> Clone for BroadcastReceiver<T>where
T: Clone,
Auto Trait Implementations§
impl<T> Freeze for BroadcastReceiver<T>
impl<T> !RefUnwindSafe for BroadcastReceiver<T>
impl<T> Send for BroadcastReceiver<T>where
T: Send,
impl<T> Sync for BroadcastReceiver<T>where
T: Send,
impl<T> Unpin for BroadcastReceiver<T>
impl<T> !UnwindSafe for BroadcastReceiver<T>
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