Trait gio::prelude::IOStreamExt

source ·
pub trait IOStreamExt: 'static {
    // Required methods
    fn clear_pending(&self);
    fn close(
        &self,
        cancellable: Option<&impl IsA<Cancellable>>
    ) -> Result<(), Error>;
    fn close_async<P: FnOnce(Result<(), Error>) + 'static>(
        &self,
        io_priority: Priority,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P
    );
    fn close_future(
        &self,
        io_priority: Priority
    ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
    fn input_stream(&self) -> InputStream;
    fn output_stream(&self) -> OutputStream;
    fn has_pending(&self) -> bool;
    fn is_closed(&self) -> bool;
    fn set_pending(&self) -> Result<(), Error>;
    fn connect_closed_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}

Required Methods§

source

fn clear_pending(&self)

source

fn close( &self, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<(), Error>

source

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

source

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

source

fn input_stream(&self) -> InputStream

source

fn output_stream(&self) -> OutputStream

source

fn has_pending(&self) -> bool

source

fn is_closed(&self) -> bool

source

fn set_pending(&self) -> Result<(), Error>

source

fn connect_closed_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Implementors§