Trait OutputStreamExtManual

Source
pub trait OutputStreamExtManual: Sized + OutputStreamExt {
    // Required methods
    fn write_async<B: AsRef<[u8]> + Send + 'static, Q: FnOnce(Result<(B, usize), (B, Error)>) + Send + 'static>(
        &self,
        buffer: B,
        io_priority: Priority,
        cancellable: Option<&Cancellable>,
        callback: Q,
    );
    fn write_all(
        &self,
        buffer: &[u8],
        cancellable: Option<&Cancellable>,
    ) -> Result<(usize, Option<Error>), Error>;
    fn write_all_async<B: AsRef<[u8]> + Send + 'static, Q: FnOnce(Result<(B, usize, Option<Error>), (B, Error)>) + Send + 'static>(
        &self,
        buffer: B,
        io_priority: Priority,
        cancellable: Option<&Cancellable>,
        callback: Q,
    );

    // Provided method
    fn into_write(self) -> OutputStreamWrite<Self> { ... }
}

Required Methods§

Source

fn write_async<B: AsRef<[u8]> + Send + 'static, Q: FnOnce(Result<(B, usize), (B, Error)>) + Send + 'static>( &self, buffer: B, io_priority: Priority, cancellable: Option<&Cancellable>, callback: Q, )

Source

fn write_all( &self, buffer: &[u8], cancellable: Option<&Cancellable>, ) -> Result<(usize, Option<Error>), Error>

Source

fn write_all_async<B: AsRef<[u8]> + Send + 'static, Q: FnOnce(Result<(B, usize, Option<Error>), (B, Error)>) + Send + 'static>( &self, buffer: B, io_priority: Priority, cancellable: Option<&Cancellable>, callback: Q, )

Provided Methods§

Source

fn into_write(self) -> OutputStreamWrite<Self>

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§