pub trait IOStreamExt: '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 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 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
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.