pub enum RejectInetCode {
IcmpxNoRoute = 0,
IcmpxPortUnreach = 1,
IcmpxHostUnreach = 2,
IcmpxAdminProhibited = 3,
}Available on crate feature
nftables only.Expand description
These codes are mapped to real ICMP and ICMPv6 codes. Enum - defines an integer enumeration, with values for each entry incrementing by 1, (e.g. 0, 1, 2, 3)
Variants§
Implementations§
Source§impl RejectInetCode
impl RejectInetCode
pub fn from_value(value: u64) -> Option<Self>
Trait Implementations§
Source§impl Clone for RejectInetCode
impl Clone for RejectInetCode
Source§fn clone(&self) -> RejectInetCode
fn clone(&self) -> RejectInetCode
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 RejectInetCode
impl Debug for RejectInetCode
impl Copy for RejectInetCode
Auto Trait Implementations§
impl Freeze for RejectInetCode
impl RefUnwindSafe for RejectInetCode
impl Send for RejectInetCode
impl Sync for RejectInetCode
impl Unpin for RejectInetCode
impl UnwindSafe for RejectInetCode
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