Type Alias OwnedFrame

Source
pub type OwnedFrame = Frame<'static>;
Expand description

Represents a frame whose lifetime is static

Aliased Type§

pub struct OwnedFrame { /* private fields */ }

Trait Implementations§

Source§

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

Source§

fn from(item: [u8; N]) -> Self

Consumes an array of bytes and returns a Frame with an owned item of those bytes allocated as a Vec.

Source§

impl From<Vec<u8>> for OwnedFrame

Source§

fn from(item: Vec<u8>) -> Self

Consumes a Vec of bytes and returns a Frame with an owned item of those bytes.