Struct hexchat_api::AsyncResult
source · pub struct AsyncResult<T: Clone + Send> { /* private fields */ }
Expand description
A result object that allows callbacks operating on a thread to send their
return value to a receiver calling get()
from another thread. Whether
return data needs to be transferred or not, this object can be used to wait
on the completion of a callback, thus providing synchronization between
threads.
Implementations§
source§impl<T: Clone + Send> AsyncResult<T>
impl<T: Clone + Send> AsyncResult<T>
Trait Implementations§
source§impl<T: Clone + Clone + Send> Clone for AsyncResult<T>
impl<T: Clone + Clone + Send> Clone for AsyncResult<T>
source§fn clone(&self) -> AsyncResult<T>
fn clone(&self) -> AsyncResult<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 moreimpl<T: Clone + Send> Send for AsyncResult<T>
impl<T: Clone + Send> Sync for AsyncResult<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for AsyncResult<T>
impl<T> Unpin for AsyncResult<T>
impl<T> !UnwindSafe for AsyncResult<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