pub enum LockRole {
Ownership,
Topology,
Participant(u32),
Claim(u32),
}Expand description
Which lock-file role a failing operation was for.
Variants§
Ownership
Byte 0 — ownership. Its holder serves the socket.
Topology
Byte 1 — A2’s topology mutation lock, held for one Tree::reparent.
Participant(u32)
Byte 16 + i — participant liveness for slot i.
Claim(u32)
A per-edge claim lease (docs/PHASE2.md §6.1); the edge id, not a slot.
Trait Implementations§
impl Copy for LockRole
impl Eq for LockRole
impl StructuralPartialEq for LockRole
Auto Trait Implementations§
impl Freeze for LockRole
impl RefUnwindSafe for LockRole
impl Send for LockRole
impl Sync for LockRole
impl Unpin for LockRole
impl UnsafeUnpin for LockRole
impl UnwindSafe for LockRole
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