#[repr(u32)]pub enum ChangeRequestFlags {
ChangePort = 2,
ChangeIp = 4,
}
Expand description
The change request attribute contains two flags to control the IP address and port that the server uses to send the response. These flags are called the “change IP” and “change port” flags.
Variants§
Trait Implementations§
source§impl BitAnd for ChangeRequestFlags
impl BitAnd for ChangeRequestFlags
source§impl BitFlag for ChangeRequestFlags
impl BitFlag for ChangeRequestFlags
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 ChangeRequestFlags
impl BitOr for ChangeRequestFlags
source§impl BitXor for ChangeRequestFlags
impl BitXor for ChangeRequestFlags
source§impl Clone for ChangeRequestFlags
impl Clone for ChangeRequestFlags
source§fn clone(&self) -> ChangeRequestFlags
fn clone(&self) -> ChangeRequestFlags
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 ChangeRequestFlags
impl Debug for ChangeRequestFlags
source§impl Not for ChangeRequestFlags
impl Not for ChangeRequestFlags
source§impl PartialEq for ChangeRequestFlags
impl PartialEq for ChangeRequestFlags
source§impl RawBitFlags for ChangeRequestFlags
impl RawBitFlags for ChangeRequestFlags
source§const EMPTY: Self::Numeric = {transmute(0x00000000): <attributes::discovery::change_request::ChangeRequestFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00000000): <attributes::discovery::change_request::ChangeRequestFlags as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
source§const DEFAULT: Self::Numeric = {transmute(0x00000000): <attributes::discovery::change_request::ChangeRequestFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00000000): <attributes::discovery::change_request::ChangeRequestFlags as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
source§const ALL_BITS: Self::Numeric = {transmute(0x00000006): <attributes::discovery::change_request::ChangeRequestFlags as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x00000006): <attributes::discovery::change_request::ChangeRequestFlags as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<ChangeRequestFlags>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<ChangeRequestFlags>"
The name of the type for debug formatting purposes. Read more
impl Copy for ChangeRequestFlags
impl Eq for ChangeRequestFlags
impl StructuralPartialEq for ChangeRequestFlags
Auto Trait Implementations§
impl Freeze for ChangeRequestFlags
impl RefUnwindSafe for ChangeRequestFlags
impl Send for ChangeRequestFlags
impl Sync for ChangeRequestFlags
impl Unpin for ChangeRequestFlags
impl UnwindSafe for ChangeRequestFlags
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
)