pub struct FleetStateChecksum(/* private fields */);
Expand description
An identifier of the fleet state.
Implementations§
Source§impl FleetStateChecksum
impl FleetStateChecksum
Sourcepub fn from_nodes(
other_nodes: &[NodeMetadata],
this_node: Option<&NodeMetadata>,
) -> Self
pub fn from_nodes( other_nodes: &[NodeMetadata], this_node: Option<&NodeMetadata>, ) -> Self
Creates a checksum from the given list of node metadata, and, possibly, also the metadata of the requesting node.
Trait Implementations§
Source§impl AsRef<[u8]> for FleetStateChecksum
impl AsRef<[u8]> for FleetStateChecksum
Source§impl Clone for FleetStateChecksum
impl Clone for FleetStateChecksum
Source§fn clone(&self) -> FleetStateChecksum
fn clone(&self) -> FleetStateChecksum
Returns a duplicate of the value. Read more
1.0.0 · 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 FleetStateChecksum
impl Debug for FleetStateChecksum
Source§impl<'de> Deserialize<'de> for FleetStateChecksum
impl<'de> Deserialize<'de> for FleetStateChecksum
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
Source§impl Display for FleetStateChecksum
impl Display for FleetStateChecksum
Source§impl PartialEq for FleetStateChecksum
impl PartialEq for FleetStateChecksum
Source§impl Serialize for FleetStateChecksum
impl Serialize for FleetStateChecksum
impl Copy for FleetStateChecksum
impl Eq for FleetStateChecksum
impl StructuralPartialEq for FleetStateChecksum
Auto Trait Implementations§
impl Freeze for FleetStateChecksum
impl RefUnwindSafe for FleetStateChecksum
impl Send for FleetStateChecksum
impl Sync for FleetStateChecksum
impl Unpin for FleetStateChecksum
impl UnwindSafe for FleetStateChecksum
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FromBytes for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBytes for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)