Struct pipewire_wrapper::spa::buffers::meta::MetaHeaderRef
source · #[repr(transparent)]pub struct MetaHeaderRef { /* private fields */ }
Expand description
Describes essential buffer header metadata such as flags and timestamps.
Implementations§
source§impl MetaHeaderRef
impl MetaHeaderRef
pub fn flags(&self) -> HeaderFlags
pub fn set_flags(&mut self, flags: HeaderFlags)
pub fn offset(&self) -> u32
pub fn set_offset(&mut self, offset: u32)
pub fn pts(&self) -> i64
pub fn set_pts(&mut self, pts: i64)
pub fn dts_offset(&self) -> i64
pub fn set_dts_offset(&mut self, dts_offset: i64)
pub fn seq(&self) -> u64
pub fn set_seq(&mut self, seq: u64)
Trait Implementations§
source§impl Debug for MetaHeaderRef
impl Debug for MetaHeaderRef
source§impl From<MetaHeaderRef> for spa_meta_header
impl From<MetaHeaderRef> for spa_meta_header
source§fn from(value: MetaHeaderRef) -> Self
fn from(value: MetaHeaderRef) -> Self
Converts to this type from the input type.
source§impl From<spa_meta_header> for MetaHeaderRef
impl From<spa_meta_header> for MetaHeaderRef
source§fn from(value: spa_meta_header) -> Self
fn from(value: spa_meta_header) -> Self
Converts to this type from the input type.
source§impl RawWrapper for MetaHeaderRef
impl RawWrapper for MetaHeaderRef
§type CType = spa_meta_header
type CType = spa_meta_header
External type
source§fn as_raw_ptr(&self) -> *mut Self::CType
fn as_raw_ptr(&self) -> *mut Self::CType
Raw ptr to the external type
source§fn from_raw(raw: Self::CType) -> Self
fn from_raw(raw: Self::CType) -> Self
Creates wrapper from the external value, can be use when external type has no raw pointers.
source§unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
Cast external pointer to the borrowed mutable wrapper.
Panic when pointer is null.
Lifetime is not reliable and should be guaranteed explicitly. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MetaHeaderRef
impl Send for MetaHeaderRef
impl Sync for MetaHeaderRef
impl Unpin for MetaHeaderRef
impl UnwindSafe for MetaHeaderRef
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