Trait ux::prelude::IOStreamExt [−]
pub trait IOStreamExt: 'static {
pub fn clear_pending(&self);
pub fn close<P>(&self, cancellable: Option<&P>) -> Result<(), Error>
where
P: IsA<Cancellable>;
pub fn close_async<P, Q>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(), Error>) + Send;
pub fn close_async_future(
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>;
pub fn get_input_stream(&self) -> Option<InputStream>;
pub fn get_output_stream(&self) -> Option<OutputStream>;
pub fn has_pending(&self) -> bool;
pub fn is_closed(&self) -> bool;
pub fn set_pending(&self) -> Result<(), Error>;
pub fn get_property_closed(&self) -> bool;
pub fn connect_property_closed_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self);
}Required methods
pub fn clear_pending(&self)
pub fn close<P>(&self, cancellable: Option<&P>) -> Result<(), Error> where
P: IsA<Cancellable>,
P: IsA<Cancellable>,
pub fn close_async<P, Q>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(), Error>) + Send,
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(), Error>) + Send,
pub fn close_async_future(
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
pub fn get_input_stream(&self) -> Option<InputStream>
pub fn get_output_stream(&self) -> Option<OutputStream>
pub fn has_pending(&self) -> bool
pub fn is_closed(&self) -> bool
pub fn set_pending(&self) -> Result<(), Error>
pub fn get_property_closed(&self) -> bool
pub fn connect_property_closed_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
F: 'static + Fn(&Self),
Implementors
impl<O> IOStreamExt for O where
O: IsA<IOStream>,
O: IsA<IOStream>,
pub fn clear_pending(&self)
pub fn close<P>(&self, cancellable: Option<&P>) -> Result<(), Error> where
P: IsA<Cancellable>,
P: IsA<Cancellable>,
pub fn close_async<P, Q>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(), Error>) + Send,
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(), Error>) + Send,
pub fn close_async_future(
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
pub fn get_input_stream(&self) -> Option<InputStream>
pub fn get_output_stream(&self) -> Option<OutputStream>
pub fn has_pending(&self) -> bool
pub fn is_closed(&self) -> bool
pub fn set_pending(&self) -> Result<(), Error>
pub fn get_property_closed(&self) -> bool
pub fn connect_property_closed_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),