pub struct HeldCab {
pub cab: Cab,
pub hold: Option<File>,
}Expand description
A CAB with the handle that keeps its container alive: for a dependency’s
CAB, the dependency’s top-level file as the lookup reached it (an
eviction drops only the LRU’s handle, so while this one is held the CAB’s
bundle, and with it the pointers that need its siblings, stay
reachable); None for a CAB of a file the caller loaded, which is never
evicted. What crate::env::Environment::get_cab_held returns.
Fields§
§cab: CabThe CAB.
hold: Option<File>The dependency’s top-level file, when the CAB is a dependency’s.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HeldCab
impl !UnwindSafe for HeldCab
impl Forget for HeldCab
impl Freeze for HeldCab
impl Move for HeldCab
impl Send for HeldCab
impl Sync for HeldCab
impl Unpin for HeldCab
impl UnsafeUnpin for HeldCab
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