Struct pipewire::metadata::MetadataListenerLocalBuilder
source · pub struct MetadataListenerLocalBuilder<'meta> { /* private fields */ }
Implementations§
source§impl<'meta> MetadataListenerLocalBuilder<'meta>
impl<'meta> MetadataListenerLocalBuilder<'meta>
sourcepub fn property<F>(self, property: F) -> Self
pub fn property<F>(self, property: F) -> Self
Add property changed callback.
Callback parameters: subject, key, type, value.
None
for value
means removal of property.
None
for key
means removal of all properties.
pub fn register(self) -> MetadataListener
Auto Trait Implementations§
impl<'meta> !RefUnwindSafe for MetadataListenerLocalBuilder<'meta>
impl<'meta> !Send for MetadataListenerLocalBuilder<'meta>
impl<'meta> !Sync for MetadataListenerLocalBuilder<'meta>
impl<'meta> Unpin for MetadataListenerLocalBuilder<'meta>
impl<'meta> !UnwindSafe for MetadataListenerLocalBuilder<'meta>
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