Trait gio::prelude::DataInputStreamExtManual
source · pub trait DataInputStreamExtManual: Sealed + IsA<DataInputStream> + 'static {
// Provided methods
fn read_line<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<Slice<u8>, Error> { ... }
fn read_line_async<P: IsA<Cancellable>, Q: FnOnce(Result<Slice<u8>, Error>) + 'static>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) { ... }
fn read_line_future(
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<Slice<u8>, Error>> + 'static>> { ... }
fn read_line_utf8<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<Option<GString>, Error> { ... }
fn read_line_utf8_async<P: IsA<Cancellable>, Q: FnOnce(Result<Option<GString>, Error>) + 'static>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) { ... }
fn read_line_utf8_future(
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<Option<GString>, Error>> + 'static>> { ... }
fn read_upto<P: IsA<Cancellable>>(
&self,
stop_chars: &[u8],
cancellable: Option<&P>
) -> Result<Slice<u8>, Error> { ... }
fn read_upto_async<P: IsA<Cancellable>, Q: FnOnce(Result<Slice<u8>, Error>) + 'static>(
&self,
stop_chars: &[u8],
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) { ... }
fn read_upto_future(
&self,
stop_chars: &[u8],
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<Slice<u8>, Error>> + 'static>> { ... }
}
Provided Methods§
fn read_line<P: IsA<Cancellable>>( &self, cancellable: Option<&P> ) -> Result<Slice<u8>, Error>
fn read_line_async<P: IsA<Cancellable>, Q: FnOnce(Result<Slice<u8>, Error>) + 'static>( &self, io_priority: Priority, cancellable: Option<&P>, callback: Q )
fn read_line_future( &self, io_priority: Priority ) -> Pin<Box_<dyn Future<Output = Result<Slice<u8>, Error>> + 'static>>
fn read_line_utf8<P: IsA<Cancellable>>( &self, cancellable: Option<&P> ) -> Result<Option<GString>, Error>
fn read_line_utf8_async<P: IsA<Cancellable>, Q: FnOnce(Result<Option<GString>, Error>) + 'static>( &self, io_priority: Priority, cancellable: Option<&P>, callback: Q )
fn read_line_utf8_future( &self, io_priority: Priority ) -> Pin<Box_<dyn Future<Output = Result<Option<GString>, Error>> + 'static>>
fn read_upto<P: IsA<Cancellable>>( &self, stop_chars: &[u8], cancellable: Option<&P> ) -> Result<Slice<u8>, Error>
fn read_upto_async<P: IsA<Cancellable>, Q: FnOnce(Result<Slice<u8>, Error>) + 'static>( &self, stop_chars: &[u8], io_priority: Priority, cancellable: Option<&P>, callback: Q )
fn read_upto_future( &self, stop_chars: &[u8], io_priority: Priority ) -> Pin<Box_<dyn Future<Output = Result<Slice<u8>, Error>> + 'static>>
Object Safety§
This trait is not object safe.