Trait audio_streams::async_api::AudioStreamsExecutor
source · pub trait AudioStreamsExecutor {
// Required methods
fn async_unix_stream(&self, f: UnixStream) -> Result<AsyncStream>;
fn delay<'life0, 'async_trait>(
&'life0 self,
dur: Duration
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn wait_fd_readable<'life0, 'async_trait>(
&'life0 self,
_fd: RawDescriptor
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Trait of Executor functionality used by audio_streams
.
Required Methods§
sourcefn async_unix_stream(&self, f: UnixStream) -> Result<AsyncStream>
fn async_unix_stream(&self, f: UnixStream) -> Result<AsyncStream>
Create an object to allow async reads/writes from the specified UnixStream.