Trait ip::traits::primitive::Octets

source ·
pub trait Octets: Borrow<[u8]> + BorrowMut<[u8]> {
    const LENGTH: usize;
    const ZEROS: Self;
}
Expand description

Underlying byte-array like type used to represent the octets of an IP address.

Required Associated Constants§

source

const LENGTH: usize

The length of Self, in bytes.

source

const ZEROS: Self

The zero-value of Self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<const N: usize> Octets for [u8; N]

source§

const LENGTH: usize = N

source§

const ZEROS: Self = _

Implementors§