pub enum ReserveOutcome {
Reserved(AgentEntry),
LiveOwner(AgentEntry),
}Expand description
Outcome of an attempt to reserve an active session on a thread.
LiveOwner carries the existing reservation so callers can compare
anchors and surface either an “already reserved by another live
process” or an “anchor drift” error. The registry reaps dead owners
in-place before producing this outcome — so an Active entry seen
here is guaranteed to have been alive at the moment of the check.
Variants§
Reserved(AgentEntry)
Reservation succeeded; the new entry is included.
LiveOwner(AgentEntry)
Another live agent already holds this thread.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReserveOutcome
impl RefUnwindSafe for ReserveOutcome
impl Send for ReserveOutcome
impl Sync for ReserveOutcome
impl Unpin for ReserveOutcome
impl UnsafeUnpin for ReserveOutcome
impl UnwindSafe for ReserveOutcome
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