Struct glib::SyncSender
source · pub struct SyncSender<T>(/* private fields */);
Expand description
A SyncSender
that can be used to send items to the corresponding main context receiver.
This SyncSender
behaves the same as std::sync::mpsc::SyncSender
.
See MainContext::sync_channel()
for how to create such a SyncSender
.
Implementations§
Trait Implementations§
source§impl<T> Clone for SyncSender<T>
impl<T> Clone for SyncSender<T>
source§fn clone(&self) -> SyncSender<T>
fn clone(&self) -> SyncSender<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T> Debug for SyncSender<T>
impl<T> Debug for SyncSender<T>
source§impl<T> Drop for SyncSender<T>
impl<T> Drop for SyncSender<T>
impl<T: Send> Send for SyncSender<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for SyncSender<T>
impl<T> Sync for SyncSender<T>where
T: Send,
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