pub struct HandleOwner<D: Send + Sync>(/* private fields */);
Expand description
A Handle
owner.
Use Handle::new
to create.
Dropping the HandleOwner
marks all active handles as force-drop.
Implementations§
source§impl<D: Send + Sync> HandleOwner<D>
impl<D: Send + Sync> HandleOwner<D>
sourcepub fn is_dropped(&self) -> bool
pub fn is_dropped(&self) -> bool
If the handle is in dropped state.
The handle is considered dropped when all handle and clones are dropped or when force_drop
was called in any of the clones.
sourcepub fn weak_handle(&self) -> WeakHandle<D>
pub fn weak_handle(&self) -> WeakHandle<D>
Gets an weak handle that may-not be able to upgrade.
Trait Implementations§
Auto Trait Implementations§
impl<D> Freeze for HandleOwner<D>
impl<D> RefUnwindSafe for HandleOwner<D>where
D: RefUnwindSafe,
impl<D> Send for HandleOwner<D>
impl<D> Sync for HandleOwner<D>
impl<D> Unpin for HandleOwner<D>
impl<D> UnwindSafe for HandleOwner<D>where
D: RefUnwindSafe,
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