gio::subclass::prelude

Trait IOStreamImpl

Source
pub trait IOStreamImpl:
    Send
    + ObjectImpl
    + ObjectSubclass<Type: IsA<IOStream>> {
    // Provided methods
    fn input_stream(&self) -> InputStream { ... }
    fn output_stream(&self) -> OutputStream { ... }
    fn close(&self, cancellable: Option<&Cancellable>) -> Result<(), Error> { ... }
}

Provided Methods§

Source

fn input_stream(&self) -> InputStream

Gets the input stream for this object. This is used for reading.

§Returns

a #GInputStream, owned by the #GIOStream. Do not free.

Source

fn output_stream(&self) -> OutputStream

Gets the output stream for this object. This is used for writing.

§Returns

a #GOutputStream, owned by the #GIOStream. Do not free.

Source

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

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§