pub struct RecoveryEra(/* private fields */);Expand description
An opaque cluster fencing identity advanced only by offline total-voter recovery.
Unlike allocator-backed identities, this type intentionally exposes no numeric value or successor operation. Recovery-era order is meaningful only inside the bounded offline lineage protocol.
Implementations§
Source§impl RecoveryEra
impl RecoveryEra
pub fn new(value: u128) -> Result<RecoveryEra, IdentityError>
pub fn from_be_bytes(bytes: [u8; 16]) -> Result<RecoveryEra, IdentityError>
pub const fn to_be_bytes(self) -> [u8; 16]
Trait Implementations§
Source§impl Clone for RecoveryEra
impl Clone for RecoveryEra
Source§fn clone(&self) -> RecoveryEra
fn clone(&self) -> RecoveryEra
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 moreimpl Copy for RecoveryEra
Source§impl Debug for RecoveryEra
impl Debug for RecoveryEra
Source§impl<'de> Deserialize<'de> for RecoveryEra
impl<'de> Deserialize<'de> for RecoveryEra
Source§fn deserialize<D>(
deserializer: D,
) -> Result<RecoveryEra, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<RecoveryEra, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RecoveryEra
impl Display for RecoveryEra
impl Eq for RecoveryEra
Source§impl FromStr for RecoveryEra
impl FromStr for RecoveryEra
Source§type Err = IdentityError
type Err = IdentityError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<RecoveryEra, <RecoveryEra as FromStr>::Err>
fn from_str(value: &str) -> Result<RecoveryEra, <RecoveryEra as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for RecoveryEra
impl Hash for RecoveryEra
Source§impl PartialEq for RecoveryEra
impl PartialEq for RecoveryEra
Source§impl Serialize for RecoveryEra
impl Serialize for RecoveryEra
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 RecoveryEra
Auto Trait Implementations§
impl Freeze for RecoveryEra
impl RefUnwindSafe for RecoveryEra
impl Send for RecoveryEra
impl Sync for RecoveryEra
impl Unpin for RecoveryEra
impl UnsafeUnpin for RecoveryEra
impl UnwindSafe for RecoveryEra
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request