Trait sourceview5::prelude::InputStreamExtManual
source · pub trait InputStreamExtManual: Sized + Sealed + IsA<InputStream> {
// Provided methods
fn read<B, C>(
&self,
buffer: B,
cancellable: Option<&C>,
) -> Result<usize, Error>
where B: AsMut<[u8]>,
C: IsA<Cancellable> { ... }
fn read_all<B, C>(
&self,
buffer: B,
cancellable: Option<&C>,
) -> Result<(usize, Option<Error>), Error>
where B: AsMut<[u8]>,
C: IsA<Cancellable> { ... }
fn read_all_async<B, Q, C>(
&self,
buffer: B,
io_priority: Priority,
cancellable: Option<&C>,
callback: Q,
)
where B: AsMut<[u8]> + Send + 'static,
Q: FnOnce(Result<(B, usize, Option<Error>), (B, Error)>) + 'static,
C: IsA<Cancellable> { ... }
fn read_async<B, Q, C>(
&self,
buffer: B,
io_priority: Priority,
cancellable: Option<&C>,
callback: Q,
)
where B: AsMut<[u8]> + Send + 'static,
Q: FnOnce(Result<(B, usize), (B, Error)>) + 'static,
C: IsA<Cancellable> { ... }
fn read_all_future<B>(
&self,
buffer: B,
io_priority: Priority,
) -> Pin<Box<dyn Future<Output = Result<(B, usize, Option<Error>), (B, Error)>>>>
where B: AsMut<[u8]> + Send + 'static { ... }
fn read_future<B>(
&self,
buffer: B,
io_priority: Priority,
) -> Pin<Box<dyn Future<Output = Result<(B, usize), (B, Error)>>>>
where B: AsMut<[u8]> + Send + 'static { ... }
fn into_read(self) -> InputStreamRead<Self>
where Self: IsA<InputStream> { ... }
fn into_async_buf_read(
self,
buffer_size: usize,
) -> InputStreamAsyncBufRead<Self>
where Self: IsA<InputStream> { ... }
}
Provided Methods§
fn read<B, C>(&self, buffer: B, cancellable: Option<&C>) -> Result<usize, Error>
fn read_all<B, C>( &self, buffer: B, cancellable: Option<&C>, ) -> Result<(usize, Option<Error>), Error>
fn read_all_async<B, Q, C>( &self, buffer: B, io_priority: Priority, cancellable: Option<&C>, callback: Q, )
fn read_async<B, Q, C>( &self, buffer: B, io_priority: Priority, cancellable: Option<&C>, callback: Q, )
fn read_all_future<B>( &self, buffer: B, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<(B, usize, Option<Error>), (B, Error)>>>>
fn read_future<B>( &self, buffer: B, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<(B, usize), (B, Error)>>>>
fn into_read(self) -> InputStreamRead<Self>where
Self: IsA<InputStream>,
fn into_async_buf_read(
self,
buffer_size: usize,
) -> InputStreamAsyncBufRead<Self>where
Self: IsA<InputStream>,
Object Safety§
This trait is not object safe.