pub struct Slab<'context>(/* private fields */);Expand description
One complete exception slab mapping owned by a Context.
Implementations§
Source§impl Slab<'_>
impl Slab<'_>
Sourcepub const fn is_published(&self) -> bool
pub const fn is_published(&self) -> bool
Return whether the slab currently contributes a published kernel snapshot.
Sourcepub const fn record_list(&self) -> &[mirilla_except_record]
pub const fn record_list(&self) -> &[mirilla_except_record]
Return read-only access to the complete record list.
Sourcepub const fn record_list_mut(&mut self) -> Option<&mut [mirilla_except_record]>
pub const fn record_list_mut(&mut self) -> Option<&mut [mirilla_except_record]>
Return mutable access to the complete record list while the slab is editable.
Sourcepub fn publish(&mut self) -> Result<()>
pub fn publish(&mut self) -> Result<()>
Publish the complete record list as an immutable kernel snapshot.
A successful call leaves the slab read only. A failed call leaves the slab editable and owned by the caller.
§Errors
This returns the operating system or kernel validation error from the protection change.
Trait Implementations§
Auto Trait Implementations§
impl<'context> !Send for Slab<'context>
impl<'context> !Sync for Slab<'context>
impl<'context> Freeze for Slab<'context>
impl<'context> RefUnwindSafe for Slab<'context>
impl<'context> Unpin for Slab<'context>
impl<'context> UnsafeUnpin for Slab<'context>
impl<'context> UnwindSafe for Slab<'context>
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