pub struct PT_IPV4NET(pub Ipv4Addr);
Expand description
An IPv4 network
This is a wrapper around Ipv4Addr that makes it a distinct type, suitable for storing IPv4 subnets.
Tuple Fields§
§0: Ipv4Addr
Trait Implementations§
source§impl<'de> Deserialize<'de> for Ipv4Net
impl<'de> Deserialize<'de> for Ipv4Net
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 FromBytes<'_> for Ipv4Net
impl FromBytes<'_> for Ipv4Net
source§fn from_bytes(buf: &mut &[u8]) -> FromBytesResult<Self>
fn from_bytes(buf: &mut &[u8]) -> FromBytesResult<Self>
Read the binary representation of a field and return the parsed representation Read more
source§fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> FromBytesResult<Self>
fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> FromBytesResult<Self>
Read the binary representation of a field from a buffer that may or may not exist Read more
impl Copy for Ipv4Net
impl Eq for Ipv4Net
impl StructuralPartialEq for Ipv4Net
Auto Trait Implementations§
impl Freeze for Ipv4Net
impl RefUnwindSafe for Ipv4Net
impl Send for Ipv4Net
impl Sync for Ipv4Net
impl Unpin for Ipv4Net
impl UnwindSafe for Ipv4Net
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
)