pub struct FenceClaim { /* private fields */ }Expand description
A successfully created cross-boundary directory claim.
Implementations§
Source§impl FenceClaim
impl FenceClaim
Sourcepub fn try_claim(
root: &Path,
kind: FenceOwnerKind,
generation: Option<u64>,
) -> Result<Option<Self>, FenceError>
pub fn try_claim( root: &Path, kind: FenceOwnerKind, generation: Option<u64>, ) -> Result<Option<Self>, FenceError>
Attempt to claim the launch boundary. Ok(None) means another side
owns it; absence or malformed owner metadata never makes it free.
Sourcepub fn make_durable(self)
pub fn make_durable(self)
Leave a recovery claim durable. A restarted watchdog may adopt only a matching recovery owner; a guest-launch owner is never removed blindly.
pub fn owner(root: &Path) -> Result<Option<FenceOwner>, FenceError>
pub fn release(self) -> Result<(), FenceError>
Trait Implementations§
Source§impl Debug for FenceClaim
impl Debug for FenceClaim
Source§impl Drop for FenceClaim
impl Drop for FenceClaim
Auto Trait Implementations§
impl Freeze for FenceClaim
impl RefUnwindSafe for FenceClaim
impl Send for FenceClaim
impl Sync for FenceClaim
impl Unpin for FenceClaim
impl UnsafeUnpin for FenceClaim
impl UnwindSafe for FenceClaim
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