pub struct AudioPacketExtra { /* private fields */ }Expand description
Per-AudioPacket extras.
Implementations§
Source§impl AudioPacketExtra
impl AudioPacketExtra
Sourcepub const fn new(stream_index: i32) -> Self
pub const fn new(stream_index: i32) -> Self
Constructs an AudioPacketExtra with the given stream index.
Sourcepub const fn stream_index(&self) -> i32
pub const fn stream_index(&self) -> i32
Returns the source AVStream.index.
Sourcepub fn side_data(&self) -> &[SideDataEntry]
pub fn side_data(&self) -> &[SideDataEntry]
Returns the raw side-data entries.
Sourcepub const fn with_stream_index(self, value: i32) -> Self
pub const fn with_stream_index(self, value: i32) -> Self
Sets the stream index (consuming builder).
Sourcepub const fn with_byte_pos(self, value: Option<i64>) -> Self
pub const fn with_byte_pos(self, value: Option<i64>) -> Self
Sets the byte position (consuming builder).
Sourcepub fn with_side_data(self, value: Vec<SideDataEntry>) -> Self
pub fn with_side_data(self, value: Vec<SideDataEntry>) -> Self
Sets the side-data list (consuming builder).
Sourcepub const fn set_stream_index(&mut self, value: i32) -> &mut Self
pub const fn set_stream_index(&mut self, value: i32) -> &mut Self
Sets the stream index in place.
Sourcepub const fn set_byte_pos(&mut self, value: Option<i64>) -> &mut Self
pub const fn set_byte_pos(&mut self, value: Option<i64>) -> &mut Self
Sets the byte position in place.
Sourcepub fn set_side_data(&mut self, value: Vec<SideDataEntry>) -> &mut Self
pub fn set_side_data(&mut self, value: Vec<SideDataEntry>) -> &mut Self
Sets the side-data list in place.
Trait Implementations§
Source§impl Clone for AudioPacketExtra
impl Clone for AudioPacketExtra
Source§fn clone(&self) -> AudioPacketExtra
fn clone(&self) -> AudioPacketExtra
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 moreSource§impl Debug for AudioPacketExtra
impl Debug for AudioPacketExtra
Source§impl Default for AudioPacketExtra
impl Default for AudioPacketExtra
Source§fn default() -> AudioPacketExtra
fn default() -> AudioPacketExtra
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AudioPacketExtra
impl RefUnwindSafe for AudioPacketExtra
impl Send for AudioPacketExtra
impl Sync for AudioPacketExtra
impl Unpin for AudioPacketExtra
impl UnsafeUnpin for AudioPacketExtra
impl UnwindSafe for AudioPacketExtra
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