Struct pipewire_wrapper::spa::loop_::SourceRef
source · #[repr(transparent)]pub struct SourceRef { /* private fields */ }
Trait Implementations§
source§impl<'l> AsMut<SourceRef> for EventSource<'l>
impl<'l> AsMut<SourceRef> for EventSource<'l>
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<'l> AsMut<SourceRef> for IOSource<'l>
impl<'l> AsMut<SourceRef> for IOSource<'l>
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<'l> AsMut<SourceRef> for IdleSource<'l>
impl<'l> AsMut<SourceRef> for IdleSource<'l>
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<'l> AsMut<SourceRef> for SignalSource<'l>
impl<'l> AsMut<SourceRef> for SignalSource<'l>
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<'l> AsMut<SourceRef> for TimerSource<'l>
impl<'l> AsMut<SourceRef> for TimerSource<'l>
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<'l> AsRef<SourceRef> for EventSource<'l>
impl<'l> AsRef<SourceRef> for EventSource<'l>
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<'l> AsRef<SourceRef> for IOSource<'l>
impl<'l> AsRef<SourceRef> for IOSource<'l>
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<'l> AsRef<SourceRef> for IdleSource<'l>
impl<'l> AsRef<SourceRef> for IdleSource<'l>
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<'l> AsRef<SourceRef> for SignalSource<'l>
impl<'l> AsRef<SourceRef> for SignalSource<'l>
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<'l> AsRef<SourceRef> for TimerSource<'l>
impl<'l> AsRef<SourceRef> for TimerSource<'l>
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 From<SourceRef> for spa_source
impl From<SourceRef> for spa_source
source§impl From<spa_source> for SourceRef
impl From<spa_source> for SourceRef
source§fn from(value: spa_source) -> Self
fn from(value: spa_source) -> Self
Converts to this type from the input type.
source§impl RawWrapper for SourceRef
impl RawWrapper for SourceRef
§type CType = spa_source
type CType = spa_source
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 SourceRef
impl !Send for SourceRef
impl !Sync for SourceRef
impl Unpin for SourceRef
impl UnwindSafe for SourceRef
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