Type Definition distant_net::common::OwnedFrame

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

Represents a frame whose lifetime is static

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, Global>> 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.