#[repr(isize)]pub enum EndpointType {
Unknown = 0,
Local = 1,
Stun = 2,
PortMapped = 3,
Stun4LocalPort = 4,
ExplicitConf = 5,
}Expand description
Distinguishes different sources of MapRequest::endpoints values.
Variants§
Unknown = 0
Unknown endpoint type.
Local = 1
Endpoint is a LAN address.
Stun = 2
Endpoint is a STUN address.
PortMapped = 3
Endpoint is a router port-mapping.
Stun4LocalPort = 4
Hard NAT: STUNed IPv4 with local fixed port.
ExplicitConf = 5
Explicitly configured (routing to be done by client).
Trait Implementations§
Source§impl Clone for EndpointType
impl Clone for EndpointType
Source§fn clone(&self) -> EndpointType
fn clone(&self) -> EndpointType
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 moreimpl Copy for EndpointType
Source§impl Debug for EndpointType
impl Debug for EndpointType
Source§impl<'de> Deserialize<'de> for EndpointType
impl<'de> Deserialize<'de> for EndpointType
Source§fn deserialize<D>(
deserializer: D,
) -> Result<EndpointType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<EndpointType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EndpointType
Source§impl PartialEq for EndpointType
impl PartialEq for EndpointType
Source§fn eq(&self, other: &EndpointType) -> bool
fn eq(&self, other: &EndpointType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EndpointType
impl Serialize for EndpointType
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EndpointType
Auto Trait Implementations§
impl Freeze for EndpointType
impl RefUnwindSafe for EndpointType
impl Send for EndpointType
impl Sync for EndpointType
impl Unpin for EndpointType
impl UnsafeUnpin for EndpointType
impl UnwindSafe for EndpointType
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.