Struct pipewire_wrapper::core_api::link::Link
source · pub struct Link<'c> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'a> OwnListeners<'a> for Link<'a>
impl<'a> OwnListeners<'a> for Link<'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 Link<'c>
impl<'c> Wrapper for Link<'c>
§type RawWrapperType = LinkRef
type RawWrapperType = LinkRef
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 Link<'c>
impl<'c> !Send for Link<'c>
impl<'c> !Sync for Link<'c>
impl<'c> Unpin for Link<'c>
impl<'c> UnwindSafe for Link<'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