Struct pipewire::stream::ListenerLocalBuilder
source · pub struct ListenerLocalBuilder<'a, D> { /* private fields */ }
Implementations§
source§impl<'a, D> ListenerLocalBuilder<'a, D>
impl<'a, D> ListenerLocalBuilder<'a, D>
sourcepub fn state_changed<F>(self, callback: F) -> Self
pub fn state_changed<F>(self, callback: F) -> Self
Set the callback for the state_changed
event.
sourcepub fn control_info<F>(self, callback: F) -> Self
pub fn control_info<F>(self, callback: F) -> Self
Set the callback for the control_info
event.
sourcepub fn io_changed<F>(self, callback: F) -> Self
pub fn io_changed<F>(self, callback: F) -> Self
Set the callback for the io_changed
event.
sourcepub fn param_changed<F>(self, callback: F) -> Self
pub fn param_changed<F>(self, callback: F) -> Self
Set the callback for the param_changed
event.
sourcepub fn add_buffer<F>(self, callback: F) -> Self
pub fn add_buffer<F>(self, callback: F) -> Self
Set the callback for the add_buffer
event.
sourcepub fn remove_buffer<F>(self, callback: F) -> Self
pub fn remove_buffer<F>(self, callback: F) -> Self
Set the callback for the remove_buffer
event.
sourcepub fn register(self) -> Result<StreamListener<D>, Error>
pub fn register(self) -> Result<StreamListener<D>, Error>
Stop building the listener and register it on the stream. Returns a
StreamListener
handlle that will un-register the listener on drop.
Auto Trait Implementations§
impl<'a, D> !RefUnwindSafe for ListenerLocalBuilder<'a, D>
impl<'a, D> !Send for ListenerLocalBuilder<'a, D>
impl<'a, D> !Sync for ListenerLocalBuilder<'a, D>
impl<'a, D> Unpin for ListenerLocalBuilder<'a, D>where
D: Unpin,
impl<'a, D> !UnwindSafe for ListenerLocalBuilder<'a, D>
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