pub enum SharedCallback {}Expand description
Serialized state for callbacks that can run on another thread.
Trait Implementations§
type Cell<T> = Mutex<T>
Source§type Owner<T> = Arc<Mutex<T>>
type Owner<T> = Arc<Mutex<T>>
Clones keep the same callback allocation alive while C holds its raw pointer.
type Guard<'a, T: 'a> = MutexGuard<'a, T>
fn is_in_use<T>(cell: &Self::Cell<T>) -> bool
fn new<T>(value: T) -> Self::Cell<T>
fn new_owned<T>(value: T) -> Self::Owner<T>
fn lock<T>(cell: &Self::Cell<T>) -> Self::Guard<'_, T>
Auto Trait Implementations§
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