#[repr(transparent)]pub struct Ipv4AddressOrigin(pub u8);
Expand description
Origin of the source IP address.
Tuple Fields§
§0: u8
Implementations§
source§impl Ipv4AddressOrigin
impl Ipv4AddressOrigin
sourcepub const DHCP: Ipv4AddressOrigin = _
pub const DHCP: Ipv4AddressOrigin = _
Source IP address was assigned through DHCP.
sourcepub const STATIC: Ipv4AddressOrigin = _
pub const STATIC: Ipv4AddressOrigin = _
Source IP address is statically bound.
Trait Implementations§
source§impl Clone for Ipv4AddressOrigin
impl Clone for Ipv4AddressOrigin
source§fn clone(&self) -> Ipv4AddressOrigin
fn clone(&self) -> Ipv4AddressOrigin
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 Ipv4AddressOrigin
impl Debug for Ipv4AddressOrigin
source§impl Hash for Ipv4AddressOrigin
impl Hash for Ipv4AddressOrigin
source§impl Ord for Ipv4AddressOrigin
impl Ord for Ipv4AddressOrigin
source§fn cmp(&self, other: &Ipv4AddressOrigin) -> Ordering
fn cmp(&self, other: &Ipv4AddressOrigin) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Ipv4AddressOrigin
impl PartialEq for Ipv4AddressOrigin
source§impl PartialOrd for Ipv4AddressOrigin
impl PartialOrd for Ipv4AddressOrigin
impl Copy for Ipv4AddressOrigin
impl Eq for Ipv4AddressOrigin
impl StructuralPartialEq for Ipv4AddressOrigin
Auto Trait Implementations§
impl Freeze for Ipv4AddressOrigin
impl RefUnwindSafe for Ipv4AddressOrigin
impl Send for Ipv4AddressOrigin
impl Sync for Ipv4AddressOrigin
impl Unpin for Ipv4AddressOrigin
impl UnwindSafe for Ipv4AddressOrigin
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
)