Trait gio::prelude::BufferedInputStreamExt
source · [−]pub trait BufferedInputStreamExt: 'static {
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
sourcefn fill(
fn fill(
&self,
count: isize,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<isize, Error>
sourcefn fill_async<P: FnOnce(Result<isize, Error>) + 'static>(
fn fill_async<P: FnOnce(Result<isize, Error>) + 'static>(
&self,
count: isize,
io_priority: Priority,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
)
sourcefn fill_future(
fn fill_future(
&self,
count: isize,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<isize, Error>> + 'static>>
source
fn buffer_size(&self) -> usize
source
fn peek_buffer(&self) -> Vec<u8>
source
fn set_buffer_size(&self, size: usize)
sourcefn connect_buffer_size_notify<F: Fn(&Self) + 'static>(