[][src]Trait gio::prelude::OutputStreamExt

pub trait OutputStreamExt: '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 flush<P: IsA<Cancellable>>(
        &self,
        cancellable: Option<&P>
    ) -> Result<(), Error>;
fn flush_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        io_priority: Priority,
        cancellable: Option<&P>,
        callback: Q
    );
fn flush_async_future(
        &self,
        io_priority: Priority
    ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
fn has_pending(&self) -> bool;
fn is_closed(&self) -> bool;
fn is_closing(&self) -> bool;
fn set_pending(&self) -> Result<(), Error>;
fn splice<P: IsA<InputStream>, Q: IsA<Cancellable>>(
        &self,
        source: &P,
        flags: OutputStreamSpliceFlags,
        cancellable: Option<&Q>
    ) -> Result<isize, Error>;
fn splice_async<P: IsA<InputStream>, Q: IsA<Cancellable>, R: FnOnce(Result<isize, Error>) + Send + 'static>(
        &self,
        source: &P,
        flags: OutputStreamSpliceFlags,
        io_priority: Priority,
        cancellable: Option<&Q>,
        callback: R
    );
fn splice_async_future<P: IsA<InputStream> + Clone + 'static>(
        &self,
        source: &P,
        flags: OutputStreamSpliceFlags,
        io_priority: Priority
    ) -> Pin<Box_<dyn Future<Output = Result<isize, Error>> + 'static>>;
fn write<P: IsA<Cancellable>>(
        &self,
        buffer: &[u8],
        cancellable: Option<&P>
    ) -> Result<isize, Error>;
fn write_bytes<P: IsA<Cancellable>>(
        &self,
        bytes: &Bytes,
        cancellable: Option<&P>
    ) -> Result<isize, Error>;
fn write_bytes_async<P: IsA<Cancellable>, Q: FnOnce(Result<isize, Error>) + Send + 'static>(
        &self,
        bytes: &Bytes,
        io_priority: Priority,
        cancellable: Option<&P>,
        callback: Q
    );
fn write_bytes_async_future(
        &self,
        bytes: &Bytes,
        io_priority: Priority
    ) -> Pin<Box_<dyn Future<Output = Result<isize, Error>> + 'static>>; }

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 flush<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<(), Error>

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

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

fn has_pending(&self) -> bool

fn is_closed(&self) -> bool

fn is_closing(&self) -> bool

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

fn splice<P: IsA<InputStream>, Q: IsA<Cancellable>>(
    &self,
    source: &P,
    flags: OutputStreamSpliceFlags,
    cancellable: Option<&Q>
) -> Result<isize, Error>

fn splice_async<P: IsA<InputStream>, Q: IsA<Cancellable>, R: FnOnce(Result<isize, Error>) + Send + 'static>(
    &self,
    source: &P,
    flags: OutputStreamSpliceFlags,
    io_priority: Priority,
    cancellable: Option<&Q>,
    callback: R
)

fn splice_async_future<P: IsA<InputStream> + Clone + 'static>(
    &self,
    source: &P,
    flags: OutputStreamSpliceFlags,
    io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<isize, Error>> + 'static>>

fn write<P: IsA<Cancellable>>(
    &self,
    buffer: &[u8],
    cancellable: Option<&P>
) -> Result<isize, Error>

fn write_bytes<P: IsA<Cancellable>>(
    &self,
    bytes: &Bytes,
    cancellable: Option<&P>
) -> Result<isize, Error>

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

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

Loading content...

Implementors

impl<O: IsA<OutputStream>> OutputStreamExt for O[src]

Loading content...