Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§