pub struct PT_IPV6NET(pub Ipv6Addr);
Expand description
An IPv6 network
This is a wrapper around Ipv6Addr that makes it a distinct type, suitable for storing IPv6 subnets.
Tuple Fields§
§0: Ipv6Addr
Trait Implementations§
Source§impl FromBytes<'_> for Ipv6Net
impl FromBytes<'_> for Ipv6Net
Source§fn from_bytes(buf: &mut &[u8]) -> Result<Ipv6Net, FromBytesError>
fn from_bytes(buf: &mut &[u8]) -> Result<Ipv6Net, FromBytesError>
Read the binary representation of a field and return the parsed representation Read more
Source§fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> Result<Self, FromBytesError>
fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> Result<Self, FromBytesError>
Read the binary representation of a field from a buffer that may or may not exist Read more
Source§impl ToBytes for Ipv6Net
impl ToBytes for Ipv6Net
Source§fn binary_size(&self) -> usize
fn binary_size(&self) -> usize
Return the number of bytes needed to store the field
Source§fn write<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
fn write<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
Write the binary representation to
writer
Source§fn default_repr() -> impl ToBytes
fn default_repr() -> impl ToBytes
Return the default representation for the field type Read more
impl Copy for Ipv6Net
impl Eq for Ipv6Net
impl StructuralPartialEq for Ipv6Net
Auto Trait Implementations§
impl Freeze for Ipv6Net
impl RefUnwindSafe for Ipv6Net
impl Send for Ipv6Net
impl Sync for Ipv6Net
impl Unpin for Ipv6Net
impl UnwindSafe for Ipv6Net
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