[][src]Trait gio::prelude::BufferedInputStreamExt

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 get_available(&self) -> usize;
fn get_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_property_buffer_size_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

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 get_available(&self) -> usize

fn get_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_property_buffer_size_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<BufferedInputStream>> BufferedInputStreamExt for O[src]

Loading content...