[][src]Trait gio::IOStreamExt

pub trait IOStreamExt: 'static {
    fn clear_pending(&self);
fn close<P: IsA<Cancellable>>(
        &self,
        cancellable: Option<&P>
    ) -> Result<(), Error>;
fn close_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        io_priority: Priority,
        cancellable: Option<&P>,
        callback: Q
    );
fn close_async_future(
        &self,
        io_priority: Priority
    ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
fn get_input_stream(&self) -> Option<InputStream>;
fn get_output_stream(&self) -> Option<OutputStream>;
fn has_pending(&self) -> bool;
fn is_closed(&self) -> bool;
fn set_pending(&self) -> Result<(), Error>;
fn get_property_closed(&self) -> bool;
fn connect_property_closed_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

fn clear_pending(&self)

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

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

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

fn get_input_stream(&self) -> Option<InputStream>

fn get_output_stream(&self) -> Option<OutputStream>

fn has_pending(&self) -> bool

fn is_closed(&self) -> bool

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

fn get_property_closed(&self) -> bool

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

Loading content...

Implementors

impl<O: IsA<IOStream>> IOStreamExt for O[src]

Loading content...