pub struct Serializer;
Expand description
Serializer of the Video Layers Allocation Header Extension
Trait Implementations§
Source§impl Debug for Serializer
impl Debug for Serializer
Source§impl ExtensionSerializer for Serializer
impl ExtensionSerializer for Serializer
Source§fn write_to(&self, _buf: &mut [u8], ev: &ExtensionValues) -> usize
fn write_to(&self, _buf: &mut [u8], ev: &ExtensionValues) -> usize
Write the extension to the buffer of bytes. Must return the number
of bytes written. This can be 0 if the extension could not be serialized.
Source§fn parse_value(&self, buf: &[u8], ev: &mut ExtensionValues) -> bool
fn parse_value(&self, buf: &[u8], ev: &mut ExtensionValues) -> bool
Parse a value and put it in the
ExtensionValues::user_values
field.Source§fn requires_two_byte_form(&self, _ev: &ExtensionValues) -> bool
fn requires_two_byte_form(&self, _ev: &ExtensionValues) -> bool
When calling write_to, if the size of the written value may exceed 16 bytes,
or may be 0 bytes, the two byte header extension form must be used.
Otherwise, the one byte form may be used, which is usually the case.
Auto Trait Implementations§
impl Freeze for Serializer
impl RefUnwindSafe for Serializer
impl Send for Serializer
impl Sync for Serializer
impl Unpin for Serializer
impl UnwindSafe for Serializer
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