pub struct RunLoopSender { /* private fields */ }Implementations§
Source§impl RunLoopSender
impl RunLoopSender
Sourcepub fn send<F>(&self, callback: F)
pub fn send<F>(&self, callback: F)
Schedules the callback to be executed on run loop and returns immediately.
Sourcepub fn send_and_wait<F, R>(&self, callback: F) -> R
pub fn send_and_wait<F, R>(&self, callback: F) -> R
Schedules the callback on run loop and blocks until it is invoked. If current thread is run loop thread the callback will be invoked immediately (otherwise it would deadlock).
Trait Implementations§
Source§impl Clone for RunLoopSender
impl Clone for RunLoopSender
Source§fn clone(&self) -> RunLoopSender
fn clone(&self) -> RunLoopSender
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RunLoopSender
impl RefUnwindSafe for RunLoopSender
impl Send for RunLoopSender
impl Sync for RunLoopSender
impl Unpin for RunLoopSender
impl UnwindSafe for RunLoopSender
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