pub struct BackendIdentity(/* private fields */);Expand description
Identity of one backend enforcement instance.
A backend must store one identity for the lifetime of its enforcement
state and return a reference to it from SandboxBackend::identity. Two
backend instances may share an identity only when they intentionally share
the same capability and enforcement state. This is an identity token, not
proof that operating-system enforcement exists.
This type intentionally has no Default implementation. Every identity
must be created explicitly with Self::new, because a default value
would be a fresh identity rather than a shared backend boundary.
ⓘ
use cageforge_backend_api::BackendIdentity;
let _ = BackendIdentity::default();Implementations§
Trait Implementations§
Source§impl Clone for BackendIdentity
impl Clone for BackendIdentity
Source§impl Debug for BackendIdentity
impl Debug for BackendIdentity
impl Eq for BackendIdentity
Auto Trait Implementations§
impl Freeze for BackendIdentity
impl RefUnwindSafe for BackendIdentity
impl Send for BackendIdentity
impl Sync for BackendIdentity
impl Unpin for BackendIdentity
impl UnsafeUnpin for BackendIdentity
impl UnwindSafe for BackendIdentity
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