pub struct ToOctets<IP>(PhantomData<IP>);
Expand description
This struct represents a conversion of IP addresses (V4 and V6) into their component bytes. The ordering of IP addresses is already the lexicographic ordering of the component bytes, so it will be preserved.
Tuple Fields§
§0: PhantomData<IP>
Trait Implementations§
source§impl BytesMapping for ToOctets<Ipv4Addr>
impl BytesMapping for ToOctets<Ipv4Addr>
source§impl BytesMapping for ToOctets<Ipv6Addr>
impl BytesMapping for ToOctets<Ipv6Addr>
Auto Trait Implementations§
impl<IP> RefUnwindSafe for ToOctets<IP>where IP: RefUnwindSafe,
impl<IP> Send for ToOctets<IP>where IP: Send,
impl<IP> Sync for ToOctets<IP>where IP: Sync,
impl<IP> Unpin for ToOctets<IP>where IP: Unpin,
impl<IP> UnwindSafe for ToOctets<IP>where IP: UnwindSafe,
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