pub struct NodeIncarnationId(/* private fields */);Implementations§
Source§impl NodeIncarnationId
impl NodeIncarnationId
pub fn from_bytes(bytes: [u8; 16]) -> NodeIncarnationId
pub fn as_bytes(&self) -> &[u8; 16]
Trait Implementations§
Source§impl Clone for NodeIncarnationId
impl Clone for NodeIncarnationId
Source§fn clone(&self) -> NodeIncarnationId
fn clone(&self) -> NodeIncarnationId
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 NodeIncarnationId
Source§impl Debug for NodeIncarnationId
impl Debug for NodeIncarnationId
Source§impl<'de> Deserialize<'de> for NodeIncarnationId
impl<'de> Deserialize<'de> for NodeIncarnationId
Source§fn deserialize<D>(
deserializer: D,
) -> Result<NodeIncarnationId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<NodeIncarnationId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for NodeIncarnationId
impl Display for NodeIncarnationId
impl Eq for NodeIncarnationId
Source§impl FromStr for NodeIncarnationId
impl FromStr for NodeIncarnationId
Source§type Err = NodeIncarnationIdError
type Err = NodeIncarnationIdError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<NodeIncarnationId, <NodeIncarnationId as FromStr>::Err>
fn from_str( value: &str, ) -> Result<NodeIncarnationId, <NodeIncarnationId as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for NodeIncarnationId
impl Hash for NodeIncarnationId
Source§impl Ord for NodeIncarnationId
impl Ord for NodeIncarnationId
Source§fn cmp(&self, other: &NodeIncarnationId) -> Ordering
fn cmp(&self, other: &NodeIncarnationId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for NodeIncarnationId
impl PartialEq for NodeIncarnationId
Source§impl PartialOrd for NodeIncarnationId
impl PartialOrd for NodeIncarnationId
Source§impl Serialize for NodeIncarnationId
impl Serialize for NodeIncarnationId
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 NodeIncarnationId
Auto Trait Implementations§
impl Freeze for NodeIncarnationId
impl RefUnwindSafe for NodeIncarnationId
impl Send for NodeIncarnationId
impl Sync for NodeIncarnationId
impl Unpin for NodeIncarnationId
impl UnsafeUnpin for NodeIncarnationId
impl UnwindSafe for NodeIncarnationId
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