Struct pipewire_wrapper::core_api::registry::Registry
source · pub struct Registry<'c> { /* private fields */ }
Expand description
Wrapper for the Registry proxy. See RegistryRef
Implementations§
Methods from Deref<Target = RegistryRef>§
Trait Implementations§
source§impl<'c> AsMut<RegistryRef> for Registry<'c>
impl<'c> AsMut<RegistryRef> for Registry<'c>
source§fn as_mut(&mut self) -> &'c mut RegistryRef
fn as_mut(&mut self) -> &'c mut RegistryRef
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<'c> AsRef<RegistryRef> for Registry<'c>
impl<'c> AsRef<RegistryRef> for Registry<'c>
source§fn as_ref(&self) -> &'c RegistryRef
fn as_ref(&self) -> &'c RegistryRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<'a> OwnListeners<'a> for Registry<'a>
impl<'a> OwnListeners<'a> for Registry<'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 Registry<'c>
impl<'c> Wrapper for Registry<'c>
§type RawWrapperType = RegistryRef
type RawWrapperType = RegistryRef
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 Registry<'c>
impl<'c> !Send for Registry<'c>
impl<'c> !Sync for Registry<'c>
impl<'c> Unpin for Registry<'c>
impl<'c> UnwindSafe for Registry<'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