Enum openvpn3_rs::netcfg::constants::NetCfgChangeType
source · #[repr(u16)]
pub enum NetCfgChangeType {
DeviceAdded,
DeviceRemoved,
IpaddrAdded,
IpaddrRemoved,
RouteAdded,
RouteRemoved,
RouteExcluded,
DnsServerAdded,
DnsServerRemoved,
DnsSearchAdded,
DnsSearchRemoved,
}Expand description
Network Configuration Change Type
Source: openvpn3-linux/src/netcfg/netcfg-changetype.hpp
Variants§
DeviceAdded
A new virtual interface has been added on the system
DeviceRemoved
A virtual interface has been removed from the system
IpaddrAdded
An IP address has been added to a virtual interface
IpaddrRemoved
An IP address has been removed from the virtual interface
RouteAdded
A route has been added to the routing table, related to this interface
RouteRemoved
A route has been remove from the routing table, related to this interface
RouteExcluded
A route has been excluded from the routing table, related to this interface
DnsServerAdded
A DNS server has been added to the DNS configuration
DnsServerRemoved
A DNS server has been removed from the DNS configuration
DnsSearchAdded
A DNS search domain has been added to the DNS configuration
DnsSearchRemoved
A DNS search domain has been removed from the DNS configuration
Trait Implementations§
source§impl BitAnd<NetCfgChangeType> for NetCfgChangeType
impl BitAnd<NetCfgChangeType> for NetCfgChangeType
§type Output = BitFlags<NetCfgChangeType, <NetCfgChangeType as RawBitFlags>::Numeric>
type Output = BitFlags<NetCfgChangeType, <NetCfgChangeType as RawBitFlags>::Numeric>
The resulting type after applying the
& operator.source§impl BitFlag for NetCfgChangeType
impl BitFlag for NetCfgChangeType
source§impl BitOr<NetCfgChangeType> for NetCfgChangeType
impl BitOr<NetCfgChangeType> for NetCfgChangeType
§type Output = BitFlags<NetCfgChangeType, <NetCfgChangeType as RawBitFlags>::Numeric>
type Output = BitFlags<NetCfgChangeType, <NetCfgChangeType as RawBitFlags>::Numeric>
The resulting type after applying the
| operator.source§impl BitXor<NetCfgChangeType> for NetCfgChangeType
impl BitXor<NetCfgChangeType> for NetCfgChangeType
§type Output = BitFlags<NetCfgChangeType, <NetCfgChangeType as RawBitFlags>::Numeric>
type Output = BitFlags<NetCfgChangeType, <NetCfgChangeType as RawBitFlags>::Numeric>
The resulting type after applying the
^ operator.source§impl Clone for NetCfgChangeType
impl Clone for NetCfgChangeType
source§fn clone(&self) -> NetCfgChangeType
fn clone(&self) -> NetCfgChangeType
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 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
§type Output = BitFlags<NetCfgChangeType, <NetCfgChangeType as RawBitFlags>::Numeric>
type Output = BitFlags<NetCfgChangeType, <NetCfgChangeType as RawBitFlags>::Numeric>
The resulting type after applying the
! operator.source§impl PartialEq<NetCfgChangeType> for NetCfgChangeType
impl PartialEq<NetCfgChangeType> for NetCfgChangeType
source§fn eq(&self, other: &NetCfgChangeType) -> bool
fn eq(&self, other: &NetCfgChangeType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl RawBitFlags for NetCfgChangeType
impl RawBitFlags for NetCfgChangeType
source§const EMPTY: Self::Numeric = {transmute(0x0000): <proxy::netcfg::constants::NetCfgChangeType as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x0000): <proxy::netcfg::constants::NetCfgChangeType as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
source§const DEFAULT: Self::Numeric = {transmute(0x0000): <proxy::netcfg::constants::NetCfgChangeType as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::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::Numeric = {transmute(0x07ff): <proxy::netcfg::constants::NetCfgChangeType as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::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 = _
const BITFLAGS_TYPE_NAME: &'static str = _
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 StructuralEq for NetCfgChangeType
impl StructuralPartialEq for NetCfgChangeType
Auto Trait Implementations§
impl RefUnwindSafe for NetCfgChangeType
impl Send for NetCfgChangeType
impl Sync for NetCfgChangeType
impl Unpin for NetCfgChangeType
impl UnwindSafe for NetCfgChangeType
Blanket Implementations§
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere
T: Type + ?Sized,
§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more