#[non_exhaustive]pub enum NetkitPolicy {
Pass,
Drop,
Redirect,
Other(u32),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl NetkitPolicy
impl NetkitPolicy
Sourcepub const Forward: NetkitPolicy = Self::Pass
pub const Forward: NetkitPolicy = Self::Pass
Alias for the Pass policy
Trait Implementations§
Source§impl Clone for NetkitPolicy
impl Clone for NetkitPolicy
Source§fn clone(&self) -> NetkitPolicy
fn clone(&self) -> NetkitPolicy
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 NetkitPolicy
impl Debug for NetkitPolicy
Source§impl From<NetkitPolicy> for u32
impl From<NetkitPolicy> for u32
Source§fn from(policy: NetkitPolicy) -> Self
fn from(policy: NetkitPolicy) -> Self
Converts to this type from the input type.
Source§impl From<u32> for NetkitPolicy
impl From<u32> for NetkitPolicy
Source§impl PartialEq for NetkitPolicy
impl PartialEq for NetkitPolicy
impl Copy for NetkitPolicy
impl Eq for NetkitPolicy
impl StructuralPartialEq for NetkitPolicy
Auto Trait Implementations§
impl Freeze for NetkitPolicy
impl RefUnwindSafe for NetkitPolicy
impl Send for NetkitPolicy
impl Sync for NetkitPolicy
impl Unpin for NetkitPolicy
impl UnwindSafe for NetkitPolicy
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