pub struct LeaseOwnerIdentity {
pub owner_id: String,
pub incarnation_id: String,
pub liveness: LeaseOwnerLiveness,
}Fields§
§owner_id: String§incarnation_id: String§liveness: LeaseOwnerLivenessImplementations§
Source§impl LeaseOwnerIdentity
impl LeaseOwnerIdentity
pub fn opaque( owner_id: impl Into<String>, incarnation_id: impl Into<String>, ) -> LeaseOwnerIdentity
pub fn local_process( owner_id: impl Into<String>, incarnation_id: impl Into<String>, host_id: impl Into<String>, ) -> LeaseOwnerIdentity
pub fn same_incarnation(&self, other: &LeaseOwnerIdentity) -> bool
pub fn is_definitely_dead_for_claimant( &self, claimant: &LeaseOwnerIdentity, ) -> bool
Trait Implementations§
Source§impl Clone for LeaseOwnerIdentity
impl Clone for LeaseOwnerIdentity
Source§fn clone(&self) -> LeaseOwnerIdentity
fn clone(&self) -> LeaseOwnerIdentity
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 LeaseOwnerIdentity
impl Debug for LeaseOwnerIdentity
Source§impl<'de> Deserialize<'de> for LeaseOwnerIdentity
impl<'de> Deserialize<'de> for LeaseOwnerIdentity
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeaseOwnerIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeaseOwnerIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LeaseOwnerIdentity
Source§impl PartialEq for LeaseOwnerIdentity
impl PartialEq for LeaseOwnerIdentity
Source§fn eq(&self, other: &LeaseOwnerIdentity) -> bool
fn eq(&self, other: &LeaseOwnerIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LeaseOwnerIdentity
impl Serialize for LeaseOwnerIdentity
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 LeaseOwnerIdentity
Auto Trait Implementations§
impl Freeze for LeaseOwnerIdentity
impl RefUnwindSafe for LeaseOwnerIdentity
impl Send for LeaseOwnerIdentity
impl Sync for LeaseOwnerIdentity
impl Unpin for LeaseOwnerIdentity
impl UnsafeUnpin for LeaseOwnerIdentity
impl UnwindSafe for LeaseOwnerIdentity
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