Trait sourceview5::prelude::InputStreamExt

source ·
pub trait InputStreamExt: IsA<InputStream> + Sealed + 'static {
Show 13 methods // Provided methods fn clear_pending(&self) { ... } fn close( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn close_async<P>( &self, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) where P: FnOnce(Result<(), Error>) + 'static { ... } fn close_future( &self, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<(), Error>>>> { ... } fn has_pending(&self) -> bool { ... } fn is_closed(&self) -> bool { ... } fn read_bytes( &self, count: usize, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Bytes, Error> { ... } fn read_bytes_async<P>( &self, count: usize, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) where P: FnOnce(Result<Bytes, Error>) + 'static { ... } fn read_bytes_future( &self, count: usize, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>>>> { ... } fn set_pending(&self) -> Result<(), Error> { ... } fn skip( &self, count: usize, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<isize, Error> { ... } fn skip_async<P>( &self, count: usize, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) where P: FnOnce(Result<isize, Error>) + 'static { ... } fn skip_future( &self, count: usize, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<isize, Error>>>> { ... }
}

Provided Methods§

source

fn clear_pending(&self)

source

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

source

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

source

fn close_future( &self, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<(), Error>>>>

source

fn has_pending(&self) -> bool

source

fn is_closed(&self) -> bool

source

fn read_bytes( &self, count: usize, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Bytes, Error>

source

fn read_bytes_async<P>( &self, count: usize, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
where P: FnOnce(Result<Bytes, Error>) + 'static,

source

fn read_bytes_future( &self, count: usize, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>>>>

source

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

source

fn skip( &self, count: usize, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<isize, Error>

source

fn skip_async<P>( &self, count: usize, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
where P: FnOnce(Result<isize, Error>) + 'static,

source

fn skip_future( &self, count: usize, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<isize, Error>>>>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O> InputStreamExt for O
where O: IsA<InputStream>,