#[repr(u32)]pub enum StunSecurityFeatures {
PasswordAlgorithms = 2_147_483_648,
UserNameAnonymity = 1_073_741_824,
}
Expand description
The STUN Security Feature flags
Variants§
PasswordAlgorithms = 2_147_483_648
Password algorithms
UserNameAnonymity = 1_073_741_824
User name anonymity
Trait Implementations§
source§impl BitAnd for StunSecurityFeatures
impl BitAnd for StunSecurityFeatures
source§impl BitFlag for StunSecurityFeatures
impl BitFlag for StunSecurityFeatures
source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags
with no flags set (in other words, with a value of 0). Read moresource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags
if the raw value provided does not contain
any illegal flags. Read moresource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags
from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moresource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags
unsafely, without checking if the bits form
a valid bit pattern for the type. Read moresource§impl BitOr for StunSecurityFeatures
impl BitOr for StunSecurityFeatures
source§impl BitXor for StunSecurityFeatures
impl BitXor for StunSecurityFeatures
source§impl Clone for StunSecurityFeatures
impl Clone for StunSecurityFeatures
source§fn clone(&self) -> StunSecurityFeatures
fn clone(&self) -> StunSecurityFeatures
Returns a copy of the value. Read more
1.0.0 · 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 StunSecurityFeatures
impl Debug for StunSecurityFeatures
source§impl Not for StunSecurityFeatures
impl Not for StunSecurityFeatures
source§impl PartialEq for StunSecurityFeatures
impl PartialEq for StunSecurityFeatures
source§impl RawBitFlags for StunSecurityFeatures
impl RawBitFlags for StunSecurityFeatures
source§const EMPTY: Self::Numeric = {transmute(0x00000000): <attributes::stun::nonce_cookie::StunSecurityFeatures as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00000000): <attributes::stun::nonce_cookie::StunSecurityFeatures as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
source§const DEFAULT: Self::Numeric = {transmute(0x00000000): <attributes::stun::nonce_cookie::StunSecurityFeatures as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00000000): <attributes::stun::nonce_cookie::StunSecurityFeatures as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
source§const ALL_BITS: Self::Numeric = {transmute(0xc0000000): <attributes::stun::nonce_cookie::StunSecurityFeatures as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0xc0000000): <attributes::stun::nonce_cookie::StunSecurityFeatures as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<StunSecurityFeatures>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<StunSecurityFeatures>"
The name of the type for debug formatting purposes. Read more
impl Copy for StunSecurityFeatures
impl Eq for StunSecurityFeatures
impl StructuralPartialEq for StunSecurityFeatures
Auto Trait Implementations§
impl Freeze for StunSecurityFeatures
impl RefUnwindSafe for StunSecurityFeatures
impl Send for StunSecurityFeatures
impl Sync for StunSecurityFeatures
impl Unpin for StunSecurityFeatures
impl UnwindSafe for StunSecurityFeatures
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)