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;
}