Trait gio::prelude::DataInputStreamExtManual
source · pub trait DataInputStreamExtManual: 'static {
// Required methods
fn read_line<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<Vec<u8>, Error>;
fn read_line_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<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<Vec<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_until<P: IsA<Cancellable>>(
&self,
stop_chars: &[u8],
cancellable: Option<&P>
) -> Result<Vec<u8>, Error>;
fn read_until_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<u8>, Error>) + 'static>(
&self,
stop_chars: &[u8],
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
);
fn read_until_future(
&self,
stop_chars: &[u8],
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<Vec<u8>, Error>> + 'static>>;
fn read_upto<P: IsA<Cancellable>>(
&self,
stop_chars: &[u8],
cancellable: Option<&P>
) -> Result<Vec<u8>, Error>;
fn read_upto_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<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<Vec<u8>, Error>> + 'static>>;
}
Required Methods§
fn read_line<P: IsA<Cancellable>>( &self, cancellable: Option<&P> ) -> Result<Vec<u8>, Error>
fn read_line_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<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<Vec<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>>
sourcefn read_until<P: IsA<Cancellable>>(
&self,
stop_chars: &[u8],
cancellable: Option<&P>
) -> Result<Vec<u8>, Error>
fn read_until<P: IsA<Cancellable>>( &self, stop_chars: &[u8], cancellable: Option<&P> ) -> Result<Vec<u8>, Error>
👎Deprecated
sourcefn read_until_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<u8>, Error>) + 'static>(
&self,
stop_chars: &[u8],
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn read_until_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<u8>, Error>) + 'static>( &self, stop_chars: &[u8], io_priority: Priority, cancellable: Option<&P>, callback: Q )
👎Deprecated
sourcefn read_until_future(
&self,
stop_chars: &[u8],
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<Vec<u8>, Error>> + 'static>>
fn read_until_future( &self, stop_chars: &[u8], io_priority: Priority ) -> Pin<Box_<dyn Future<Output = Result<Vec<u8>, Error>> + 'static>>
👎Deprecated