#[non_exhaustive]pub struct ClientSupports {
pub hair_pinning: Option<bool>,
pub ipv6: Option<bool>,
pub pcp: Option<bool>,
pub pmp: Option<bool>,
pub udp: Option<bool>,
pub upnp: Option<bool>,
pub unknown: Unknown,
}Expand description
NAT and address-family features the client reports.
Every field is nullable in the description and hairPinning is
documented as always null now, so absent and false are different
answers here and the Option is carrying real information.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hair_pinning: Option<bool>No longer tracked; always null.
ipv6: Option<bool>Whether the OS supports IPv6, not whether IPv6 works here.
pcp: Option<bool>§pmp: Option<bool>§udp: Option<bool>§upnp: Option<bool>§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 ClientSupports
impl Clone for ClientSupports
Source§impl Debug for ClientSupports
impl Debug for ClientSupports
Source§impl Default for ClientSupports
impl Default for ClientSupports
Source§impl<'de> Deserialize<'de> for ClientSupports
impl<'de> Deserialize<'de> for ClientSupports
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 ClientSupports
impl PartialEq for ClientSupports
Source§impl Serialize for ClientSupports
impl Serialize for ClientSupports
impl StructuralPartialEq for ClientSupports
Auto Trait Implementations§
impl Freeze for ClientSupports
impl RefUnwindSafe for ClientSupports
impl Send for ClientSupports
impl Sync for ClientSupports
impl Unpin for ClientSupports
impl UnsafeUnpin for ClientSupports
impl UnwindSafe for ClientSupports
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