#[repr(u16)]pub enum NetCfgChangeType {
DeviceAdded = 1,
DeviceRemoved = 2,
IpaddrAdded = 4,
IpaddrRemoved = 8,
RouteAdded = 16,
RouteRemoved = 32,
RouteExcluded = 64,
DnsServerAdded = 128,
DnsServerRemoved = 256,
DnsSearchAdded = 512,
DnsSearchRemoved = 1_024,
}
Expand description
Network Configuration Change Type
Source: openvpn3-linux/src/netcfg/netcfg-changetype.hpp
Variants§
DeviceAdded = 1
A new virtual interface has been added on the system
DeviceRemoved = 2
A virtual interface has been removed from the system
IpaddrAdded = 4
An IP address has been added to a virtual interface
IpaddrRemoved = 8
An IP address has been removed from the virtual interface
RouteAdded = 16
A route has been added to the routing table, related to this interface
RouteRemoved = 32
A route has been remove from the routing table, related to this interface
RouteExcluded = 64
A route has been excluded from the routing table, related to this interface
DnsServerAdded = 128
A DNS server has been added to the DNS configuration
DnsServerRemoved = 256
A DNS server has been removed from the DNS configuration
DnsSearchAdded = 512
A DNS search domain has been added to the DNS configuration
DnsSearchRemoved = 1_024
A DNS search domain has been removed from the DNS configuration
Trait Implementations§
Source§impl BitAnd for NetCfgChangeType
impl BitAnd for NetCfgChangeType
Source§impl BitFlag for NetCfgChangeType
impl BitFlag for NetCfgChangeType
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 NetCfgChangeType
impl BitOr for NetCfgChangeType
Source§impl BitXor for NetCfgChangeType
impl BitXor for NetCfgChangeType
Source§impl Clone for NetCfgChangeType
impl Clone for NetCfgChangeType
Source§fn clone(&self) -> NetCfgChangeType
fn clone(&self) -> NetCfgChangeType
Returns a duplicate 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 NetCfgChangeType
impl Debug for NetCfgChangeType
Source§impl<'de> Deserialize<'de> for NetCfgChangeType
impl<'de> Deserialize<'de> for NetCfgChangeType
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 Display for NetCfgChangeType
impl Display for NetCfgChangeType
Source§impl Not for NetCfgChangeType
impl Not for NetCfgChangeType
Source§impl PartialEq for NetCfgChangeType
impl PartialEq for NetCfgChangeType
Source§impl RawBitFlags for NetCfgChangeType
impl RawBitFlags for NetCfgChangeType
Source§const EMPTY: <Self as RawBitFlags>::Numeric = {transmute(0x0000): <proxy::netcfg::constants::NetCfgChangeType as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: <Self as RawBitFlags>::Numeric = {transmute(0x0000): <proxy::netcfg::constants::NetCfgChangeType as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
Source§const DEFAULT: <Self as RawBitFlags>::Numeric = {transmute(0x0000): <proxy::netcfg::constants::NetCfgChangeType as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: <Self as RawBitFlags>::Numeric = {transmute(0x0000): <proxy::netcfg::constants::NetCfgChangeType as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
Source§const ALL_BITS: <Self as RawBitFlags>::Numeric = {transmute(0x07ff): <proxy::netcfg::constants::NetCfgChangeType as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: <Self as RawBitFlags>::Numeric = {transmute(0x07ff): <proxy::netcfg::constants::NetCfgChangeType as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
Source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<NetCfgChangeType>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<NetCfgChangeType>"
The name of the type for debug formatting purposes. Read more
Source§impl Serialize for NetCfgChangeType
impl Serialize for NetCfgChangeType
Source§impl Type for NetCfgChangeType
impl Type for NetCfgChangeType
impl Copy for NetCfgChangeType
impl Eq for NetCfgChangeType
impl StructuralPartialEq for NetCfgChangeType
Auto Trait Implementations§
impl Freeze for NetCfgChangeType
impl RefUnwindSafe for NetCfgChangeType
impl Send for NetCfgChangeType
impl Sync for NetCfgChangeType
impl Unpin for NetCfgChangeType
impl UnwindSafe for NetCfgChangeType
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§impl<'de, T> DynamicDeserialize<'de> for T
impl<'de, T> DynamicDeserialize<'de> for T
Source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
Source§fn deserializer_for_signature<S>(
signature: S,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature<S>( signature: S, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this signature.
Source§impl<T> DynamicType for T
impl<T> DynamicType for T
Source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more