pub struct Sender<T> { /* private fields */ }Implementations§
Source§impl<T> Sender<T>
impl<T> Sender<T>
pub fn start_send(&mut self, item: T) -> Result<(), TrySendError<T>>
pub fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), SendError>>
pub fn poll_flush( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), SendError>>
pub async fn flush(&mut self) -> Result<(), SendError>
pub async fn send(&mut self, item: T) -> Result<(), TrySendError<T>>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Sender<T>
impl<T> !RefUnwindSafe for Sender<T>
impl<T> Send for Sender<T>
impl<T> Sync for Sender<T>
impl<T> Unpin for Sender<T>
impl<T> !UnwindSafe for Sender<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