pub struct Resident<Key, Val> {
key: Key,
value: Val,
state: ResidentState,
referenced: AtomicU16,
}Fields§
§key: Key§value: Val§state: ResidentState§referenced: AtomicU16Trait Implementations§
Auto Trait Implementations§
impl<Key, Val> !Freeze for Resident<Key, Val>
impl<Key, Val> RefUnwindSafe for Resident<Key, Val>where
Key: RefUnwindSafe,
Val: RefUnwindSafe,
impl<Key, Val> Send for Resident<Key, Val>
impl<Key, Val> Sync for Resident<Key, Val>
impl<Key, Val> Unpin for Resident<Key, Val>
impl<Key, Val> UnwindSafe for Resident<Key, Val>where
Key: UnwindSafe,
Val: 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