pub enum HandleRefType {
Strong(Sender<RefOp>),
Weak(Sender<RefOp>),
Internal(Sender<RefOp>),
None,
}Expand description
Keeps track of whether a handle ref is a strong, weak or “internal” ref
Variants§
Strong(Sender<RefOp>)
Strong references decrement the count on drop
Weak(Sender<RefOp>)
Weak references do nothing on drop.
Internal(Sender<RefOp>)
Internal references do nothing on drop, but turn into Strong references on clone. Should only be used for references stored in loaded artifacts to avoid self-referencing
None
Implementation detail, used when changing state in this enum
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HandleRefType
impl RefUnwindSafe for HandleRefType
impl Send for HandleRefType
impl Sync for HandleRefType
impl Unpin for HandleRefType
impl UnwindSafe for HandleRefType
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