pub struct Sender<T>(_);
Expand description
A Sender
that can be used to send items to the corresponding main context receiver.
This Sender
behaves the same as std::sync::mpsc::Sender
.
See MainContext::channel()
for how to create such a Sender
.
Implementations
Trait Implementations
impl<T: Send> Send for Sender<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Sender<T>
impl<T> Sync for Sender<T> where
T: Send,
impl<T> Unpin for Sender<T>
impl<T> UnwindSafe for Sender<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more