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§

source

fn async_unix_stream(&self, f: UnixStream) -> Result<AsyncStream>

Create an object to allow async reads/writes from the specified UnixStream.

source

fn delay<'life0, 'async_trait>( &'life0 self, dur: Duration ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a future that resolves after the specified time.

Provided Methods§

source

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,

Implementors§