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 StreamRestorepub fn test<F>(&mut self, callback: F) -> Operation<FnMut(u32)> where
F: FnMut(u32) + 'static, [src]
pub fn test<F>(&mut self, callback: F) -> Operation<FnMut(u32)> where
F: FnMut(u32) + 'static, Test if this extension module is available in the server.
pub fn read<F>(&mut self, callback: F) -> Operation<FnMut(ListResult<&Info>)> where
F: FnMut(ListResult<&Info>) + 'static, [src]
pub fn read<F>(&mut self, callback: F) -> Operation<FnMut(ListResult<&Info>)> 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<FnMut(bool)> where
F: FnMut(bool) + 'static, [src]
pub fn write<F>(
&mut self,
mode: UpdateMode,
data: &[&Info],
apply_immediately: bool,
callback: F
) -> Operation<FnMut(bool)> 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<FnMut(bool)> where
F: FnMut(bool) + 'static, [src]
pub fn delete<F>(
&mut self,
streams: &[&str],
callback: F
) -> Operation<FnMut(bool)> 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<FnMut(bool)> where
F: FnMut(bool) + 'static, [src]
pub fn subscribe<F>(
&mut self,
enable: bool,
callback: F
) -> Operation<FnMut(bool)> 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 StreamRestoreAuto Trait Implementations
impl !Send for StreamRestore
impl !Send for StreamRestoreimpl !Sync for StreamRestore
impl !Sync for StreamRestore