pub struct AcquiredKey {
pub key: KeyConfig,
pub deadlines: KeyDeadlines,
pub token: i64,
}
Fields§
§key: KeyConfig
Details of the key itself.
deadlines: KeyDeadlines
Deadlines for key expiration stages.
token: i64
A unique key associated with a key for the duration it is acquired. This does not change across renewals, but is incremented when the key is released and then acquired. This is used internally to track the key during renewals, but can also be exposed to backends as a fencing token. (https://martin.kleppmann.com/2016/02/08/how-to-do-distributed-locking.html).
Trait Implementations§
Source§impl Clone for AcquiredKey
impl Clone for AcquiredKey
Source§fn clone(&self) -> AcquiredKey
fn clone(&self) -> AcquiredKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AcquiredKey
impl Debug for AcquiredKey
Source§impl<'de> Deserialize<'de> for AcquiredKey
impl<'de> Deserialize<'de> for AcquiredKey
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
Source§impl PartialEq for AcquiredKey
impl PartialEq for AcquiredKey
Source§impl Serialize for AcquiredKey
impl Serialize for AcquiredKey
Source§impl Structable for AcquiredKey
impl Structable for AcquiredKey
Source§fn definition(&self) -> StructDef<'_>
fn definition(&self) -> StructDef<'_>
Returns the struct’s definition. Read more
Source§impl Valuable for AcquiredKey
impl Valuable for AcquiredKey
impl StructuralPartialEq for AcquiredKey
Auto Trait Implementations§
impl Freeze for AcquiredKey
impl RefUnwindSafe for AcquiredKey
impl Send for AcquiredKey
impl Sync for AcquiredKey
impl Unpin for AcquiredKey
impl UnwindSafe for AcquiredKey
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