Trait OutputStreamExt

Source
pub trait OutputStreamExt: 'static {
Show 14 methods // Required methods fn clear_pending(&self); fn close<P: IsA<Cancellable>>( &self, cancellable: Option<&P>, ) -> Result<(), Error>; fn close_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>( &self, io_priority: Priority, cancellable: Option<&P>, callback: Q, ); fn flush<P: IsA<Cancellable>>( &self, cancellable: Option<&P>, ) -> Result<(), Error>; fn flush_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>( &self, io_priority: Priority, cancellable: Option<&P>, callback: Q, ); fn has_pending(&self) -> bool; fn is_closed(&self) -> bool; fn is_closing(&self) -> bool; fn set_pending(&self) -> Result<(), Error>; fn splice<P: IsA<InputStream>, Q: IsA<Cancellable>>( &self, source: &P, flags: OutputStreamSpliceFlags, cancellable: Option<&Q>, ) -> Result<isize, Error>; fn splice_async<P: IsA<InputStream>, Q: IsA<Cancellable>, R: FnOnce(Result<isize, Error>) + Send + 'static>( &self, source: &P, flags: OutputStreamSpliceFlags, io_priority: Priority, cancellable: Option<&Q>, callback: R, ); fn write<P: IsA<Cancellable>>( &self, buffer: &[u8], cancellable: Option<&P>, ) -> Result<isize, Error>; fn write_bytes<P: IsA<Cancellable>>( &self, bytes: &Bytes, cancellable: Option<&P>, ) -> Result<isize, Error>; fn write_bytes_async<P: IsA<Cancellable>, Q: FnOnce(Result<isize, Error>) + Send + 'static>( &self, bytes: &Bytes, io_priority: Priority, cancellable: Option<&P>, callback: Q, );
}

Required Methods§

Source

fn clear_pending(&self)

Source

fn close<P: IsA<Cancellable>>( &self, cancellable: Option<&P>, ) -> Result<(), Error>

Source

fn close_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>( &self, io_priority: Priority, cancellable: Option<&P>, callback: Q, )

Source

fn flush<P: IsA<Cancellable>>( &self, cancellable: Option<&P>, ) -> Result<(), Error>

Source

fn flush_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>( &self, io_priority: Priority, cancellable: Option<&P>, callback: Q, )

Source

fn has_pending(&self) -> bool

Source

fn is_closed(&self) -> bool

Source

fn is_closing(&self) -> bool

Source

fn set_pending(&self) -> Result<(), Error>

Source

fn splice<P: IsA<InputStream>, Q: IsA<Cancellable>>( &self, source: &P, flags: OutputStreamSpliceFlags, cancellable: Option<&Q>, ) -> Result<isize, Error>

Source

fn splice_async<P: IsA<InputStream>, Q: IsA<Cancellable>, R: FnOnce(Result<isize, Error>) + Send + 'static>( &self, source: &P, flags: OutputStreamSpliceFlags, io_priority: Priority, cancellable: Option<&Q>, callback: R, )

Source

fn write<P: IsA<Cancellable>>( &self, buffer: &[u8], cancellable: Option<&P>, ) -> Result<isize, Error>

Source

fn write_bytes<P: IsA<Cancellable>>( &self, bytes: &Bytes, cancellable: Option<&P>, ) -> Result<isize, Error>

Source

fn write_bytes_async<P: IsA<Cancellable>, Q: FnOnce(Result<isize, Error>) + Send + 'static>( &self, bytes: &Bytes, io_priority: Priority, cancellable: Option<&P>, callback: Q, )

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§