pub struct Registration { /* private fields */ }Expand description
A registration token — the opaque handle the store’s
unregister_liveness_source/unregister_protect_callback verbs
consume to remove a registered LivenessSource, a
ProtectCallback, or a fleet liveness table registration (the
LivenessRegistration verb’s fleet form). ADR-012 §6.4’s
embedder correction flow (“deregisters/re-registers around the
delete”) is exactly this: the token makes deregistration
expressible without exposing the registry internals.
Copyable, but each token deregisters at most once (the second call
returns false).
Trait Implementations§
Source§impl Clone for Registration
impl Clone for Registration
impl Copy for Registration
Source§impl Debug for Registration
impl Debug for Registration
impl Eq for Registration
Source§impl Hash for Registration
impl Hash for Registration
Source§impl PartialEq for Registration
impl PartialEq for Registration
impl StructuralPartialEq for Registration
Auto Trait Implementations§
impl Freeze for Registration
impl RefUnwindSafe for Registration
impl Send for Registration
impl Sync for Registration
impl Unpin for Registration
impl UnsafeUnpin for Registration
impl UnwindSafe for Registration
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