pub trait BufferedInputStreamExt: 'static {
fn fill<P: IsA<Cancellable>>(
&self,
count: isize,
cancellable: Option<&P>
) -> Result<isize, Error>;
fn fill_async<P: IsA<Cancellable>, Q: FnOnce(Result<isize, Error>) + Send + 'static>(
&self,
count: isize,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
);
fn fill_async_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<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<i32, Error>;
fn set_buffer_size(&self, size: usize);
fn connect_buffer_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}