Struct monitor_api::CompartmentHandle
source · pub struct CompartmentHandle { /* private fields */ }
Expand description
A compartment handle. On drop, the compartment may be unloaded.
Implementations§
source§impl CompartmentHandle
impl CompartmentHandle
sourcepub fn info(&self) -> CompartmentInfo<'_>
pub fn info(&self) -> CompartmentInfo<'_>
Get the compartment info.
sourcepub fn desc(&self) -> Option<Descriptor>
pub fn desc(&self) -> Option<Descriptor>
Get the descriptor for this handle, or None if the handle refers to the current compartment.
source§impl CompartmentHandle
impl CompartmentHandle
sourcepub fn deps(&self) -> CompartmentDepsIter<'_> ⓘ
pub fn deps(&self) -> CompartmentDepsIter<'_> ⓘ
Get an iterator over this compartment’s dependencies.
sourcepub fn root(&self) -> LibraryHandle
pub fn root(&self) -> LibraryHandle
Get the root library for this compartment.
sourcepub fn libs(&self) -> LibraryIter<'_> ⓘ
pub fn libs(&self) -> LibraryIter<'_> ⓘ
Get an iterator over the libraries for this compartment.
Trait Implementations§
source§impl Drop for CompartmentHandle
impl Drop for CompartmentHandle
source§impl Handle for CompartmentHandle
impl Handle for CompartmentHandle
Auto Trait Implementations§
impl Crossing for CompartmentHandle
impl ObjSafe for CompartmentHandle
impl RefUnwindSafe for CompartmentHandle
impl Send for CompartmentHandle
impl Sync for CompartmentHandle
impl Unpin for CompartmentHandle
impl UnwindSafe for CompartmentHandle
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