[][src]Trait gio::prelude::InputStreamExtManual

pub trait InputStreamExtManual: Sized {
    fn read<'a, B: AsMut<[u8]>, P: Into<Option<&'a Cancellable>>>(
        &self,
        buffer: B,
        cancellable: P
    ) -> Result<usize, Error>;
fn read_all<'a, B: AsMut<[u8]>, P: Into<Option<&'a Cancellable>>>(
        &self,
        buffer: B,
        cancellable: P
    ) -> Result<(usize, Option<Error>), Error>;
fn read_all_async<'a, B: AsMut<[u8]> + Send + 'static, P: Into<Option<&'a Cancellable>>, Q: FnOnce(Result<(B, usize, Option<Error>), (B, Error)>) + Send + 'static>(
        &self,
        buffer: B,
        io_priority: Priority,
        cancellable: P,
        callback: Q
    );
fn read_async<'a, B: AsMut<[u8]> + Send + 'static, P: Into<Option<&'a Cancellable>>, Q: FnOnce(Result<(B, usize), (B, Error)>) + Send + 'static>(
        &self,
        buffer: B,
        io_priority: Priority,
        cancellable: P,
        callback: Q
    ); fn into_read(self) -> InputStreamRead<Self> { ... } }

Required methods

fn read<'a, B: AsMut<[u8]>, P: Into<Option<&'a Cancellable>>>(
    &self,
    buffer: B,
    cancellable: P
) -> Result<usize, Error>

fn read_all<'a, B: AsMut<[u8]>, P: Into<Option<&'a Cancellable>>>(
    &self,
    buffer: B,
    cancellable: P
) -> Result<(usize, Option<Error>), Error>

fn read_all_async<'a, B: AsMut<[u8]> + Send + 'static, P: Into<Option<&'a Cancellable>>, Q: FnOnce(Result<(B, usize, Option<Error>), (B, Error)>) + Send + 'static>(
    &self,
    buffer: B,
    io_priority: Priority,
    cancellable: P,
    callback: Q
)

fn read_async<'a, B: AsMut<[u8]> + Send + 'static, P: Into<Option<&'a Cancellable>>, Q: FnOnce(Result<(B, usize), (B, Error)>) + Send + 'static>(
    &self,
    buffer: B,
    io_priority: Priority,
    cancellable: P,
    callback: Q
)

Loading content...

Provided methods

fn into_read(self) -> InputStreamRead<Self>

Loading content...

Implementors

impl<O: IsA<InputStream>> InputStreamExtManual for O[src]

Loading content...