[][src]Trait gio::IOStreamExt

pub trait IOStreamExt: 'static {
    fn clear_pending(&self);
fn close<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        cancellable: Q
    ) -> Result<(), Error>;
fn close_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        io_priority: Priority,
        cancellable: Q,
        callback: R
    );
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<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    cancellable: Q
) -> Result<(), Error>

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

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...