Trait s2n_quic_core::inet::unspecified::Unspecified
source · pub trait Unspecified: Sized {
// Required method
fn is_unspecified(&self) -> bool;
// Provided method
fn filter_unspecified(self) -> Option<Self> { ... }
}Expand description
A trait to determine if the value is left unspecified, usually containing the default value.
See: https://en.wikipedia.org/wiki/IPv6_address#Unspecified_address
Required Methods§
sourcefn is_unspecified(&self) -> bool
fn is_unspecified(&self) -> bool
Returns true if the value is unspecified
Provided Methods§
sourcefn filter_unspecified(self) -> Option<Self>
fn filter_unspecified(self) -> Option<Self>
Coerce a potentially unspecified value into an Option
Object Safety§
This trait is not object safe.