StreamExt

Trait StreamExt 

Source
pub trait StreamExt:
    IsA<Stream>
    + Sealed
    + 'static {
Show 13 methods // Provided methods fn emits_signals(&self) -> bool { ... } fn n_buffers(&self) -> (i32, i32) { ... } fn statistics(&self) -> (u64, u64, u64) { ... } fn pop_buffer(&self) -> Option<Buffer> { ... } fn push_buffer(&self, buffer: Buffer) { ... } fn set_emit_signals(&self, emit_signals: bool) { ... } fn start_thread(&self) { ... } fn stop_thread(&self, delete_buffers: bool) -> u32 { ... } fn timeout_pop_buffer(&self, timeout: u64) -> Option<Buffer> { ... } fn try_pop_buffer(&self) -> Option<Buffer> { ... } fn device(&self) -> Option<Device> { ... } fn connect_new_buffer<F: Fn(&Self) + Send + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_emit_signals_notify<F: Fn(&Self) + Send + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all Stream methods.

§Implementors

FakeStream, GvStream, Stream, UvStream

Provided Methods§

Source

fn emits_signals(&self) -> bool

Source

fn n_buffers(&self) -> (i32, i32)

Source

fn statistics(&self) -> (u64, u64, u64)

Source

fn pop_buffer(&self) -> Option<Buffer>

Source

fn push_buffer(&self, buffer: Buffer)

Source

fn set_emit_signals(&self, emit_signals: bool)

Source

fn start_thread(&self)

Source

fn stop_thread(&self, delete_buffers: bool) -> u32

Source

fn timeout_pop_buffer(&self, timeout: u64) -> Option<Buffer>

Source

fn try_pop_buffer(&self) -> Option<Buffer>

Source

fn device(&self) -> Option<Device>

Source

fn connect_new_buffer<F: Fn(&Self) + Send + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_emit_signals_notify<F: Fn(&Self) + Send + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<O: IsA<Stream>> StreamExt for O