pub struct PacketAddition { /* private fields */ }Expand description
Side data carried with one packet: a WebM BlockAdditional, an alpha
plane coded separately. How additions pair with the main payload is the
codec’s business, not the packet’s.
Implementations§
Source§impl PacketAddition
impl PacketAddition
Sourcepub fn new(id: u32, payload: PacketPayload) -> Self
pub fn new(id: u32, payload: PacketPayload) -> Self
Side data with the container’s identifier.
Sourcepub fn payload(&self) -> &PacketPayload
pub fn payload(&self) -> &PacketPayload
The side data.
Trait Implementations§
Source§impl Clone for PacketAddition
impl Clone for PacketAddition
Source§fn clone(&self) -> PacketAddition
fn clone(&self) -> PacketAddition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PacketAddition
impl RefUnwindSafe for PacketAddition
impl Send for PacketAddition
impl Sync for PacketAddition
impl Unpin for PacketAddition
impl UnsafeUnpin for PacketAddition
impl UnwindSafe for PacketAddition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more