pub trait BufferedInputStreamExt: 'static {
    // Required methods
    fn fill(
        &self,
        count: isize,
        cancellable: Option<&impl IsA<Cancellable>>
    ) -> Result<isize, Error>;
    fn fill_async<P: FnOnce(Result<isize, Error>) + 'static>(
        &self,
        count: isize,
        io_priority: Priority,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P
    );
    fn fill_future(
        &self,
        count: isize,
        io_priority: Priority
    ) -> Pin<Box_<dyn Future<Output = Result<isize, Error>> + 'static>>;
    fn available(&self) -> usize;
    fn buffer_size(&self) -> usize;
    fn peek_buffer(&self) -> Vec<u8>;
    fn read_byte(
        &self,
        cancellable: Option<&impl IsA<Cancellable>>
    ) -> Result<i32, Error>;
    fn set_buffer_size(&self, size: usize);
    fn connect_buffer_size_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}

Required Methods§

source

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

source

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

source

fn fill_future( &self, count: isize, io_priority: Priority ) -> Pin<Box_<dyn Future<Output = Result<isize, Error>> + 'static>>

source

fn available(&self) -> usize

source

fn buffer_size(&self) -> usize

source

fn peek_buffer(&self) -> Vec<u8>

source

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

source

fn set_buffer_size(&self, size: usize)

source

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

Implementors§