pub struct ServiceLeaderLease {
pub service_id: ServiceId,
pub tenant_id: TenantId,
pub cluster_id: ClusterId,
pub holder_core_id: CoreId,
pub epoch: u64,
pub acquired_at_ms: u64,
pub expires_at_ms: u64,
}Expand description
Leadership lease scoped to one independently coordinated service.
Fields§
§service_id: ServiceIdService governed by this lease.
tenant_id: TenantIdTenant boundary.
cluster_id: ClusterIdCluster boundary.
holder_core_id: CoreIdCore currently holding leadership.
epoch: u64Monotonic fencing epoch.
acquired_at_ms: u64Acquisition timestamp in milliseconds.
expires_at_ms: u64Expiration timestamp in milliseconds.
Trait Implementations§
Source§impl Clone for ServiceLeaderLease
impl Clone for ServiceLeaderLease
Source§fn clone(&self) -> ServiceLeaderLease
fn clone(&self) -> ServiceLeaderLease
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServiceLeaderLease
impl Debug for ServiceLeaderLease
Source§impl<'de> Deserialize<'de> for ServiceLeaderLease
impl<'de> Deserialize<'de> for ServiceLeaderLease
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceLeaderLease, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceLeaderLease, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ServiceLeaderLease
Source§impl PartialEq for ServiceLeaderLease
impl PartialEq for ServiceLeaderLease
Source§impl Serialize for ServiceLeaderLease
impl Serialize for ServiceLeaderLease
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ServiceLeaderLease
Auto Trait Implementations§
impl Freeze for ServiceLeaderLease
impl RefUnwindSafe for ServiceLeaderLease
impl Send for ServiceLeaderLease
impl Sync for ServiceLeaderLease
impl Unpin for ServiceLeaderLease
impl UnsafeUnpin for ServiceLeaderLease
impl UnwindSafe for ServiceLeaderLease
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