pub struct Bond<T: 'static> { /* private fields */ }Implementations§
Source§impl<T> Bond<T>
impl<T> Bond<T>
pub fn runtime(self) -> RuntimeId
pub fn try_with<R>(self, f: impl FnOnce(&T) -> R) -> Result<R, AccessError>
pub fn with<R>(self, f: impl FnOnce(&T) -> R) -> R
pub fn try_with_untracked<R>( self, f: impl FnOnce(&T) -> R, ) -> Result<R, AccessError>
pub fn with_untracked<R>(self, f: impl FnOnce(&T) -> R) -> R
pub fn try_get(self) -> Result<T, AccessError>where
T: Clone,
pub fn get(self) -> Twhere
T: Clone,
pub fn get_untracked(self) -> Twhere
T: Clone,
pub fn is_alive(self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> !Send for Bond<T>
impl<T> !Sync for Bond<T>
impl<T> Forget for Bond<T>
impl<T> Freeze for Bond<T>where
Handle<T>: Freeze,
impl<T> Move for Bond<T>
impl<T> RefUnwindSafe for Bond<T>where
Handle<T>: RefUnwindSafe,
impl<T> Unpin for Bond<T>where
Handle<T>: Unpin,
impl<T> UnsafeUnpin for Bond<T>where
Handle<T>: UnsafeUnpin,
impl<T> UnwindSafe for Bond<T>where
Handle<T>: UnwindSafe,
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