pub struct ClientConnectivity {
pub endpoints: Option<Vec<String>>,
pub mapping_varies_by_dest_ip: Option<bool>,
pub latency: Option<BTreeMap<String, DerpLatency>>,
pub client_supports: Option<ClientSupports>,
pub unknown: Unknown,
}Expand description
What the device reports about the network it is on.
Fields§
§endpoints: Option<Vec<String>>The magicsock UDP ip:port endpoints, of either family.
mapping_varies_by_dest_ip: Option<bool>true where the host’s NAT mappings depend on the destination.
latency: Option<BTreeMap<String, DerpLatency>>Keyed by DERP server location.
client_supports: Option<ClientSupports>§unknown: UnknownEverything the description did not mention, kept so that a control plane ahead of this build still answers usefully.
Implementations§
Trait Implementations§
Source§impl Clone for ClientConnectivity
impl Clone for ClientConnectivity
Source§fn clone(&self) -> ClientConnectivity
fn clone(&self) -> ClientConnectivity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClientConnectivity
impl Debug for ClientConnectivity
Source§impl<'de> Deserialize<'de> for ClientConnectivity
impl<'de> Deserialize<'de> for ClientConnectivity
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 for ClientConnectivity
impl PartialEq for ClientConnectivity
Source§impl Serialize for ClientConnectivity
impl Serialize for ClientConnectivity
impl StructuralPartialEq for ClientConnectivity
Auto Trait Implementations§
impl Freeze for ClientConnectivity
impl RefUnwindSafe for ClientConnectivity
impl Send for ClientConnectivity
impl Sync for ClientConnectivity
impl Unpin for ClientConnectivity
impl UnsafeUnpin for ClientConnectivity
impl UnwindSafe for ClientConnectivity
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