Struct pipewire_wrapper::spa::interface::HookRef
source · #[repr(transparent)]pub struct HookRef { /* private fields */ }
Implementations§
Trait Implementations§
source§impl AsMut<HookRef> for Hook
impl AsMut<HookRef> for Hook
source§fn as_mut(&mut self) -> &mut <Self as Wrapper>::RawWrapperType
fn as_mut(&mut self) -> &mut <Self as Wrapper>::RawWrapperType
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<HookRef> for Hook
impl AsRef<HookRef> for Hook
source§fn as_ref(&self) -> &<Self as Wrapper>::RawWrapperType
fn as_ref(&self) -> &<Self as Wrapper>::RawWrapperType
Converts this type into a shared reference of the (usually inferred) input type.
source§impl ListElement for HookRef
impl ListElement for HookRef
source§fn as_list_ptr(&self) -> *mut spa_list
fn as_list_ptr(&self) -> *mut spa_list
Raw pointer to the list element
source§unsafe fn init_detached(&mut self)
unsafe fn init_detached(&mut self)
Init the list element as detached. Read more
source§impl RawWrapper for HookRef
impl RawWrapper for HookRef
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 HookRef
impl !Send for HookRef
impl !Sync for HookRef
impl Unpin for HookRef
impl UnwindSafe for HookRef
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