[−][src]Trait gio::prelude::OutputStreamExt
Required methods
fn clear_pending(&self)
fn close<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
&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
)
&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>>
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn flush<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
&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
)
&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>>
&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>
&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
)
&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>>
&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>
&self,
buffer: &[u8],
cancellable: Option<&P>
) -> Result<isize, Error>
fn write_bytes<P: IsA<Cancellable>>(
&self,
bytes: &Bytes,
cancellable: Option<&P>
) -> Result<isize, Error>
&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
)
&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>>
&self,
bytes: &Bytes,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<isize, Error>> + 'static>>
Implementors
impl<O: IsA<OutputStream>> OutputStreamExt for O
[src]
fn clear_pending(&self)
[src]
fn close<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&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
)
[src]
&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>>
[src]
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn flush<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&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
)
[src]
&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>>
[src]
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn has_pending(&self) -> bool
[src]
fn is_closed(&self) -> bool
[src]
fn is_closing(&self) -> bool
[src]
fn set_pending(&self) -> Result<(), Error>
[src]
fn splice<P: IsA<InputStream>, Q: IsA<Cancellable>>(
&self,
source: &P,
flags: OutputStreamSpliceFlags,
cancellable: Option<&Q>
) -> Result<isize, Error>
[src]
&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
)
[src]
&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>>
[src]
&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>
[src]
&self,
buffer: &[u8],
cancellable: Option<&P>
) -> Result<isize, Error>
fn write_bytes<P: IsA<Cancellable>>(
&self,
bytes: &Bytes,
cancellable: Option<&P>
) -> Result<isize, Error>
[src]
&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
)
[src]
&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>>
[src]
&self,
bytes: &Bytes,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<isize, Error>> + 'static>>