pub trait BufferedInputStreamExt: IsA<BufferedInputStream> + 'static {
// Provided 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 { ... }
}Provided 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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.