pub struct SyncSender<T> { /* private fields */ }
Expand description
The sending-half of an asynchronous channel.
Implementations§
Source§impl<T> SyncSender<T>
impl<T> SyncSender<T>
Sourcepub fn try_send(&self, item: T) -> Result<(), TrySendError<T>>
pub fn try_send(&self, item: T) -> Result<(), TrySendError<T>>
Attempts to send a value on this channel.
This method will never block the current thread.
Sourcepub fn is_disconnected(&self) -> bool
pub fn is_disconnected(&self) -> bool
Returns true
if the receiver has dropped, otherwise false
.
Trait Implementations§
Source§impl<T> Clone for SyncSender<T>
impl<T> Clone for SyncSender<T>
Source§impl<T> Debug for SyncSender<T>
impl<T> Debug for SyncSender<T>
impl<T: Send> Send for SyncSender<T>
impl<T: Send> Sync for SyncSender<T>
Auto Trait Implementations§
impl<T> Freeze for SyncSender<T>
impl<T> RefUnwindSafe for SyncSender<T>
impl<T> Unpin for SyncSender<T>
impl<T> UnwindSafe for SyncSender<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)