Struct nucypher_core::FleetStateChecksum
source · [−]pub struct FleetStateChecksum(_);Expand description
An identifier of the fleet state.
Implementations
sourceimpl FleetStateChecksum
impl FleetStateChecksum
sourcepub fn from_nodes(
this_node: Option<&NodeMetadata>,
other_nodes: &[NodeMetadata]
) -> Self
pub fn from_nodes(
this_node: Option<&NodeMetadata>,
other_nodes: &[NodeMetadata]
) -> Self
Creates a checksum from the given list of node metadata, and, possibly, also the metadata of the requesting node.
Trait Implementations
sourceimpl Clone for FleetStateChecksum
impl Clone for FleetStateChecksum
sourcefn clone(&self) -> FleetStateChecksum
fn clone(&self) -> FleetStateChecksum
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FleetStateChecksum
impl Debug for FleetStateChecksum
sourceimpl<'de> Deserialize<'de> for FleetStateChecksum
impl<'de> Deserialize<'de> for FleetStateChecksum
sourcefn 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
sourceimpl PartialEq<FleetStateChecksum> for FleetStateChecksum
impl PartialEq<FleetStateChecksum> for FleetStateChecksum
sourcefn eq(&self, other: &FleetStateChecksum) -> bool
fn eq(&self, other: &FleetStateChecksum) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FleetStateChecksum) -> bool
fn ne(&self, other: &FleetStateChecksum) -> bool
This method tests for !=.
sourceimpl Serialize for FleetStateChecksum
impl Serialize for FleetStateChecksum
impl Copy for FleetStateChecksum
impl StructuralPartialEq for FleetStateChecksum
Auto Trait Implementations
impl RefUnwindSafe for FleetStateChecksum
impl Send for FleetStateChecksum
impl Sync for FleetStateChecksum
impl Unpin for FleetStateChecksum
impl UnwindSafe for FleetStateChecksum
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToHex for T where
T: AsRef<[u8]>,
impl<T> ToHex for T where
T: AsRef<[u8]>,
sourcepub fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
pub fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
Encode the hex strict representing self into the result. Lower case
letters are used (e.g. f9b4ca) Read more
sourcepub fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
pub fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
Encode the hex strict representing self into the result. Upper case
letters are used (e.g. F9B4CA) Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more