pub struct Retainer(/* private fields */);Expand description
A retainer: the authority token a registry issues with a claim and validates
when settling it. Authority is registry-validated — a forged identifier does not
match an issued claim — not proven by the type system. Construct via
Retainer::new and read the identifier via Retainer::id. Derives
PartialEq/Eq/Hash so a durable backend can index lease state by holder
identity — the orphan rule makes providing these the contract’s responsibility.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Retainer
impl<'de> Deserialize<'de> for Retainer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Retainer
impl StructuralPartialEq for Retainer
Auto Trait Implementations§
impl Freeze for Retainer
impl RefUnwindSafe for Retainer
impl Send for Retainer
impl Sync for Retainer
impl Unpin for Retainer
impl UnsafeUnpin for Retainer
impl UnwindSafe for Retainer
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