Trait gio::prelude::InputStreamExtManual
source · [−]pub trait InputStreamExtManual: Sized {
fn read<B: AsMut<[u8]>, C: IsA<Cancellable>>(
&self,
buffer: B,
cancellable: Option<&C>
) -> Result<usize, Error>;
fn read_all<B: AsMut<[u8]>, C: IsA<Cancellable>>(
&self,
buffer: B,
cancellable: Option<&C>
) -> Result<(usize, Option<Error>), Error>;
fn read_all_async<B: AsMut<[u8]> + Send + 'static, Q: FnOnce(Result<(B, usize, Option<Error>), (B, Error)>) + 'static, C: IsA<Cancellable>>(
&self,
buffer: B,
io_priority: Priority,
cancellable: Option<&C>,
callback: Q
);
fn read_async<B: AsMut<[u8]> + Send + 'static, Q: FnOnce(Result<(B, usize), (B, Error)>) + 'static, C: IsA<Cancellable>>(
&self,
buffer: B,
io_priority: Priority,
cancellable: Option<&C>,
callback: Q
);
fn read_all_future<B: AsMut<[u8]> + Send + 'static>(
&self,
buffer: B,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(B, usize, Option<Error>), (B, Error)>> + 'static>>;
fn read_future<B: AsMut<[u8]> + Send + 'static>(
&self,
buffer: B,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(B, usize), (B, Error)>> + 'static>>;
fn into_read(self) -> InputStreamRead<Self>ⓘNotable traits for InputStreamRead<T>impl<T: IsA<InputStream>> Read for InputStreamRead<T>
where
Self: IsA<InputStream>,
{ ... }
fn into_async_buf_read(
self,
buffer_size: usize
) -> InputStreamAsyncBufRead<Self>
where
Self: IsA<InputStream>,
{ ... }
}
Required Methods
sourcefn read<B: AsMut<[u8]>, C: IsA<Cancellable>>(
fn read<B: AsMut<[u8]>, C: IsA<Cancellable>>(
&self,
buffer: B,
cancellable: Option<&C>
) -> Result<usize, Error>
sourcefn read_all<B: AsMut<[u8]>, C: IsA<Cancellable>>(
fn read_all<B: AsMut<[u8]>, C: IsA<Cancellable>>(
&self,
buffer: B,
cancellable: Option<&C>
) -> Result<(usize, Option<Error>), Error>
sourcefn read_all_async<B: AsMut<[u8]> + Send + 'static, Q: FnOnce(Result<(B, usize, Option<Error>), (B, Error)>) + 'static, C: IsA<Cancellable>>(
fn read_all_async<B: AsMut<[u8]> + Send + 'static, Q: FnOnce(Result<(B, usize, Option<Error>), (B, Error)>) + 'static, C: IsA<Cancellable>>(
&self,
buffer: B,
io_priority: Priority,
cancellable: Option<&C>,
callback: Q
)
sourcefn read_async<B: AsMut<[u8]> + Send + 'static, Q: FnOnce(Result<(B, usize), (B, Error)>) + 'static, C: IsA<Cancellable>>(
fn read_async<B: AsMut<[u8]> + Send + 'static, Q: FnOnce(Result<(B, usize), (B, Error)>) + 'static, C: IsA<Cancellable>>(
&self,
buffer: B,
io_priority: Priority,
cancellable: Option<&C>,
callback: Q
)
Provided Methods
sourcefn into_read(self) -> InputStreamRead<Self>ⓘNotable traits for InputStreamRead<T>
fn into_read(self) -> InputStreamRead<Self>ⓘNotable traits for InputStreamRead<T>impl<T: IsA<InputStream>> Read for InputStreamRead<T>
where
Self: IsA<InputStream>,
sourcefn into_async_buf_read(self, buffer_size: usize) -> InputStreamAsyncBufRead<Self> where