Struct pipewire_wrapper::spa::io::IOClockRef
source · #[repr(transparent)]pub struct IOClockRef { /* private fields */ }
Implementations§
source§impl IOClockRef
impl IOClockRef
pub fn flags(&self) -> ClockFlags
pub fn id(&self) -> u32
pub fn name(&self) -> &CStr
pub fn nsec(&self) -> u64
pub fn rate(&self) -> &FractionRef
pub fn position(&self) -> u64
pub fn duration(&self) -> u64
pub fn delay(&self) -> i64
pub fn rate_diff(&self) -> f64
pub fn next_nsec(&self) -> u64
Trait Implementations§
source§impl From<IOClockRef> for spa_io_clock
impl From<IOClockRef> for spa_io_clock
source§fn from(value: IOClockRef) -> Self
fn from(value: IOClockRef) -> Self
Converts to this type from the input type.
source§impl From<spa_io_clock> for IOClockRef
impl From<spa_io_clock> for IOClockRef
source§fn from(value: spa_io_clock) -> Self
fn from(value: spa_io_clock) -> Self
Converts to this type from the input type.
source§impl RawWrapper for IOClockRef
impl RawWrapper for IOClockRef
§type CType = spa_io_clock
type CType = spa_io_clock
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 IOClockRef
impl Send for IOClockRef
impl Sync for IOClockRef
impl Unpin for IOClockRef
impl UnwindSafe for IOClockRef
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