Struct pipewire_wrapper::core_api::factory::Factory
source · pub struct Factory<'c> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'c> AsMut<FactoryRef> for Factory<'c>
impl<'c> AsMut<FactoryRef> for Factory<'c>
source§fn as_mut(&mut self) -> &'c mut FactoryRef
fn as_mut(&mut self) -> &'c mut FactoryRef
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<'c> AsRef<FactoryRef> for Factory<'c>
impl<'c> AsRef<FactoryRef> for Factory<'c>
source§fn as_ref(&self) -> &'c FactoryRef
fn as_ref(&self) -> &'c FactoryRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<'a> OwnListeners<'a> for Factory<'a>
impl<'a> OwnListeners<'a> for Factory<'a>
source§fn listeners(
&self
) -> &Listeners<Pin<Box<<<Self as Wrapper>::RawWrapperType as AddListener<'a>>::Events>>>
fn listeners( &self ) -> &Listeners<Pin<Box<<<Self as Wrapper>::RawWrapperType as AddListener<'a>>::Events>>>
Listeners storege
source§fn add_listener(
&self,
events: Pin<Box<<<Self as Wrapper>::RawWrapperType as AddListener<'a>>::Events>>
) -> ListenerId
fn add_listener( &self, events: Pin<Box<<<Self as Wrapper>::RawWrapperType as AddListener<'a>>::Events>> ) -> ListenerId
Register new listener and add it to storage. Read more
source§fn remove_listener(
&'a mut self,
id: ListenerId
) -> Option<Pin<Box<<<Self as Wrapper>::RawWrapperType as AddListener<'a>>::Events>>>
fn remove_listener( &'a mut self, id: ListenerId ) -> Option<Pin<Box<<<Self as Wrapper>::RawWrapperType as AddListener<'a>>::Events>>>
Remove listener with the given ListenerId from storage. Read more
source§fn contains_listener(&self, id: ListenerId) -> bool
fn contains_listener(&self, id: ListenerId) -> bool
Whether the storage contains listener with the given id.
source§impl<'c> Wrapper for Factory<'c>
impl<'c> Wrapper for Factory<'c>
§type RawWrapperType = FactoryRef
type RawWrapperType = FactoryRef
RawWrapper type
source§fn into_raw(self) -> *mut <Self::RawWrapperType as RawWrapper>::CType
fn into_raw(self) -> *mut <Self::RawWrapperType as RawWrapper>::CType
Converts the Wrapper into raw pointer, that must be dropped manually.
Used when the external method takes the ownership.
source§fn as_raw(&self) -> *mut <Self::RawWrapperType as RawWrapper>::CType
fn as_raw(&self) -> *mut <Self::RawWrapperType as RawWrapper>::CType
Raw mutable pointer to the external value.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for Factory<'c>
impl<'c> !Send for Factory<'c>
impl<'c> !Sync for Factory<'c>
impl<'c> Unpin for Factory<'c>
impl<'c> UnwindSafe for Factory<'c>
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