[][src]Struct magnum_opus::packet::Packet

pub struct Packet<'a> {
    pub toc: u8,
    pub frames: Vec<&'a [u8]>,
    pub payload_offset: usize,
}

A parsed Opus packet, retuned from parse.

Fields

toc: u8

The TOC byte of the packet.

frames: Vec<&'a [u8]>

The frames contained in the packet.

payload_offset: usize

The offset into the packet at which the payload is located.

Trait Implementations

impl<'a> Debug for Packet<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Packet<'a>

impl<'a> Send for Packet<'a>

impl<'a> Sync for Packet<'a>

impl<'a> Unpin for Packet<'a>

impl<'a> UnwindSafe for Packet<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.