Struct geph4_protocol::binder::protocol::BridgeDescriptor
source · pub struct BridgeDescriptor {
pub is_direct: bool,
pub protocol: SmolStr,
pub endpoint: SocketAddr,
pub cookie: Bytes,
pub exit_hostname: SmolStr,
pub alloc_group: SmolStr,
pub update_time: u64,
pub exit_signature: Bytes,
}
Expand description
Bridge descriptor
Fields§
§is_direct: bool
§protocol: SmolStr
§endpoint: SocketAddr
§exit_hostname: SmolStr
§alloc_group: SmolStr
§update_time: u64
§exit_signature: Bytes
Trait Implementations§
source§impl Clone for BridgeDescriptor
impl Clone for BridgeDescriptor
source§fn clone(&self) -> BridgeDescriptor
fn clone(&self) -> BridgeDescriptor
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 BridgeDescriptor
impl Debug for BridgeDescriptor
source§impl<'de> Deserialize<'de> for BridgeDescriptor
impl<'de> Deserialize<'de> for BridgeDescriptor
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 Hash for BridgeDescriptor
impl Hash for BridgeDescriptor
source§impl PartialEq<BridgeDescriptor> for BridgeDescriptor
impl PartialEq<BridgeDescriptor> for BridgeDescriptor
source§fn eq(&self, other: &BridgeDescriptor) -> bool
fn eq(&self, other: &BridgeDescriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BridgeDescriptor
impl Serialize for BridgeDescriptor
impl Eq for BridgeDescriptor
impl StructuralEq for BridgeDescriptor
impl StructuralPartialEq for BridgeDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for BridgeDescriptor
impl Send for BridgeDescriptor
impl Sync for BridgeDescriptor
impl Unpin for BridgeDescriptor
impl UnwindSafe for BridgeDescriptor
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more