Struct geph4_protocol::binder::protocol::MasterSummary
source · pub struct MasterSummary {
pub exits: Vec<ExitDescriptor>,
pub bad_countries: Vec<SmolStr>,
}
Expand description
Master summary.
Fields§
§exits: Vec<ExitDescriptor>
§bad_countries: Vec<SmolStr>
Implementations§
source§impl MasterSummary
impl MasterSummary
sourcepub fn clean_hash(&self) -> Hash
pub fn clean_hash(&self) -> Hash
Gets a hash of the MasterSummary
.
This clears out dynamically changing fields like load
and direct_route
in each exit descriptor before hashing.
Trait Implementations§
source§impl Clone for MasterSummary
impl Clone for MasterSummary
source§fn clone(&self) -> MasterSummary
fn clone(&self) -> MasterSummary
Returns a copy 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 MasterSummary
impl Debug for MasterSummary
source§impl<'de> Deserialize<'de> for MasterSummary
impl<'de> Deserialize<'de> for MasterSummary
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 PartialEq<MasterSummary> for MasterSummary
impl PartialEq<MasterSummary> for MasterSummary
source§fn eq(&self, other: &MasterSummary) -> bool
fn eq(&self, other: &MasterSummary) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MasterSummary
impl Serialize for MasterSummary
impl StructuralPartialEq for MasterSummary
Auto Trait Implementations§
impl RefUnwindSafe for MasterSummary
impl Send for MasterSummary
impl Sync for MasterSummary
impl Unpin for MasterSummary
impl UnwindSafe for MasterSummary
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