Struct geph4_protocol::binder::protocol::ExitDescriptor
source · pub struct ExitDescriptor {
pub hostname: SmolStr,
pub signing_key: PublicKey,
pub country_code: SmolStr,
pub city_code: SmolStr,
pub direct_routes: Vec<BridgeDescriptor>,
pub sosistab_e2e_pk: PublicKey,
pub allowed_levels: Vec<Level>,
pub load: f64,
}
Expand description
Exit descriptor
Fields§
§hostname: SmolStr
§signing_key: PublicKey
§country_code: SmolStr
§city_code: SmolStr
§direct_routes: Vec<BridgeDescriptor>
§sosistab_e2e_pk: PublicKey
§allowed_levels: Vec<Level>
§load: f64
Trait Implementations§
source§impl Clone for ExitDescriptor
impl Clone for ExitDescriptor
source§fn clone(&self) -> ExitDescriptor
fn clone(&self) -> ExitDescriptor
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 ExitDescriptor
impl Debug for ExitDescriptor
source§impl<'de> Deserialize<'de> for ExitDescriptor
impl<'de> Deserialize<'de> for ExitDescriptor
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<ExitDescriptor> for ExitDescriptor
impl PartialEq<ExitDescriptor> for ExitDescriptor
source§fn eq(&self, other: &ExitDescriptor) -> bool
fn eq(&self, other: &ExitDescriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExitDescriptor
impl Serialize for ExitDescriptor
impl StructuralPartialEq for ExitDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for ExitDescriptor
impl Send for ExitDescriptor
impl Sync for ExitDescriptor
impl Unpin for ExitDescriptor
impl UnwindSafe for ExitDescriptor
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