pub struct NatDiscovery {
pub reflexive: Option<SocketAddr>,
pub observed: Vec<SocketAddr>,
pub symmetric: bool,
}Expand description
What STUN could work out about our position behind the NAT.
Fields§
§reflexive: Option<SocketAddr>External ip:port, only when both servers agreed.
observed: Vec<SocketAddr>§symmetric: boolImplementations§
Trait Implementations§
Source§impl Clone for NatDiscovery
impl Clone for NatDiscovery
Source§fn clone(&self) -> NatDiscovery
fn clone(&self) -> NatDiscovery
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 NatDiscovery
impl Debug for NatDiscovery
Source§impl Default for NatDiscovery
impl Default for NatDiscovery
Source§fn default() -> NatDiscovery
fn default() -> NatDiscovery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NatDiscovery
impl RefUnwindSafe for NatDiscovery
impl Send for NatDiscovery
impl Sync for NatDiscovery
impl Unpin for NatDiscovery
impl UnsafeUnpin for NatDiscovery
impl UnwindSafe for NatDiscovery
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