pub struct EpochLease {
pub authority_ready: Option<bool>,
pub epoch: u64,
pub expires_at_ms: u64,
pub config_version: u64,
pub authority_generation: Option<u64>,
}Expand description
The ref shard’s durable copy of its coordinator epoch lease.
Fields§
Initial generation-zero activation barrier completed before this grant.
epoch: u64Epoch against which the shard can authorize writes.
expires_at_ms: u64Lease expiry, Unix milliseconds from the pipeline clock.
config_version: u64Namespace configuration version at grant, starting at 1.
Independent authority generation; absent in legacy unfenced codecs.
Trait Implementations§
Source§impl Clone for EpochLease
impl Clone for EpochLease
impl Copy for EpochLease
Source§impl Debug for EpochLease
impl Debug for EpochLease
Source§impl<'de> Deserialize<'de> for EpochLease
impl<'de> Deserialize<'de> for EpochLease
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 EpochLease
Source§impl PartialEq for EpochLease
impl PartialEq for EpochLease
Source§impl Serialize for EpochLease
impl Serialize for EpochLease
impl StructuralPartialEq for EpochLease
Auto Trait Implementations§
impl Freeze for EpochLease
impl RefUnwindSafe for EpochLease
impl Send for EpochLease
impl Sync for EpochLease
impl Unpin for EpochLease
impl UnsafeUnpin for EpochLease
impl UnwindSafe for EpochLease
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