pub struct Context(/* private fields */);Expand description
An fd-owned exception context bound to its creating address space.
Implementations§
Source§impl Context
impl Context
Sourcepub unsafe fn create(
device: BorrowedFd<'_>,
slab_size: SlabSize,
soft_limit: SoftSlabLimit,
) -> Result<Self>
pub unsafe fn create( device: BorrowedFd<'_>, slab_size: SlabSize, soft_limit: SoftSlabLimit, ) -> Result<Self>
Sourcepub const fn id(&self) -> ExceptionId
pub const fn id(&self) -> ExceptionId
Return the kernel identifier.
Sourcepub const fn soft_limit(&self) -> SoftSlabLimit
pub const fn soft_limit(&self) -> SoftSlabLimit
Return the configured userspace slab limit.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for 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