DataInputStreamExtManual

Trait DataInputStreamExtManual 

Source
pub trait DataInputStreamExtManual: IsA<DataInputStream> + 'static {
    // Provided methods
    fn read_line<P: IsA<Cancellable>>(
        &self,
        cancellable: Option<&P>,
    ) -> Result<Option<Slice<u8>>, Error> { ... }
    fn read_line_async<P: IsA<Cancellable>, Q: FnOnce(Result<Option<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<Option<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§

Source

fn read_line<P: IsA<Cancellable>>( &self, cancellable: Option<&P>, ) -> Result<Option<Slice<u8>>, Error>

Source

fn read_line_async<P: IsA<Cancellable>, Q: FnOnce(Result<Option<Slice<u8>>, Error>) + 'static>( &self, io_priority: Priority, cancellable: Option<&P>, callback: Q, )

Source

fn read_line_future( &self, io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<Option<Slice<u8>>, Error>> + 'static>>

Source

fn read_line_utf8<P: IsA<Cancellable>>( &self, cancellable: Option<&P>, ) -> Result<Option<GString>, Error>

Source

fn read_line_utf8_async<P: IsA<Cancellable>, Q: FnOnce(Result<Option<GString>, Error>) + 'static>( &self, io_priority: Priority, cancellable: Option<&P>, callback: Q, )

Source

fn read_line_utf8_future( &self, io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<Option<GString>, Error>> + 'static>>

Source

fn read_upto<P: IsA<Cancellable>>( &self, stop_chars: &[u8], cancellable: Option<&P>, ) -> Result<Slice<u8>, Error>

Source

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, )

Source

fn read_upto_future( &self, stop_chars: &[u8], io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<Slice<u8>, Error>> + 'static>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§