Struct libpulse_binding::context::ext_stream_restore::StreamRestore [−][src]
pub struct StreamRestore { /* fields omitted */ }
A wrapper object providing stream restore routines to a context. Note: Saves a copy of active multi-use closure callbacks, which it frees on drop.
Methods
impl StreamRestore
[src]
impl StreamRestore
pub fn test<F>(&mut self, callback: F) -> Operation where
F: FnMut(u32) + 'static,
[src]
pub fn test<F>(&mut self, callback: F) -> Operation where
F: FnMut(u32) + 'static,
Test if this extension module is available in the server.
pub fn read<F>(&mut self, callback: F) -> Operation where
F: FnMut(ListResult<&Info>) + 'static,
[src]
pub fn read<F>(&mut self, callback: F) -> Operation where
F: FnMut(ListResult<&Info>) + 'static,
Read all entries from the stream database.
pub fn write<F>(
&mut self,
mode: UpdateMode,
data: &[&Info],
apply_immediately: bool,
callback: F
) -> Operation where
F: FnMut(bool) + 'static,
[src]
pub fn write<F>(
&mut self,
mode: UpdateMode,
data: &[&Info],
apply_immediately: bool,
callback: F
) -> Operation where
F: FnMut(bool) + 'static,
Store entries in the stream database.
The callback must accept a bool
, which indicates success.
pub fn delete<F>(&mut self, streams: &[&str], callback: F) -> Operation where
F: FnMut(bool) + 'static,
[src]
pub fn delete<F>(&mut self, streams: &[&str], callback: F) -> Operation where
F: FnMut(bool) + 'static,
Delete entries from the stream database.
The callback must accept a bool
, which indicates success.
pub fn subscribe<F>(&mut self, enable: bool, callback: F) -> Operation where
F: FnMut(bool) + 'static,
[src]
pub fn subscribe<F>(&mut self, enable: bool, callback: F) -> Operation where
F: FnMut(bool) + 'static,
Subscribe to changes in the stream database.
The callback must accept a bool
, which indicates success.
pub fn set_subscribe_cb<F>(&mut self, callback: F) where
F: FnMut() + 'static,
[src]
pub fn set_subscribe_cb<F>(&mut self, callback: F) where
F: FnMut() + 'static,
Set the subscription callback that is called when subscribe
was
called.
Trait Implementations
impl Drop for StreamRestore
[src]
impl Drop for StreamRestore
Auto Trait Implementations
impl !Send for StreamRestore
impl !Send for StreamRestore
impl !Sync for StreamRestore
impl !Sync for StreamRestore