Trait ux::prelude::InputStreamExt [−]
pub trait InputStreamExt: 'static {
Show methods
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 has_pending(&self) -> bool;
pub fn is_closed(&self) -> bool;
pub fn read_bytes<P>(
&self,
count: usize,
cancellable: Option<&P>
) -> Result<Bytes, Error>
where
P: IsA<Cancellable>;
pub fn read_bytes_async<P, Q>(
&self,
count: usize,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<Bytes, Error>) + Send;
pub fn read_bytes_async_future(
&self,
count: usize,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + 'static, Global>>;
pub fn set_pending(&self) -> Result<(), Error>;
pub fn skip<P>(
&self,
count: usize,
cancellable: Option<&P>
) -> Result<isize, Error>
where
P: IsA<Cancellable>;
pub fn skip_async<P, Q>(
&self,
count: usize,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<isize, Error>) + Send;
pub fn skip_async_future(
&self,
count: usize,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<isize, Error>> + 'static, Global>>;
}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 has_pending(&self) -> bool
pub fn is_closed(&self) -> bool
pub fn read_bytes<P>(
&self,
count: usize,
cancellable: Option<&P>
) -> Result<Bytes, Error> where
P: IsA<Cancellable>,
&self,
count: usize,
cancellable: Option<&P>
) -> Result<Bytes, Error> where
P: IsA<Cancellable>,
pub fn read_bytes_async<P, Q>(
&self,
count: usize,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<Bytes, Error>) + Send,
&self,
count: usize,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<Bytes, Error>) + Send,
pub fn read_bytes_async_future(
&self,
count: usize,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + 'static, Global>>
&self,
count: usize,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + 'static, Global>>
pub fn set_pending(&self) -> Result<(), Error>
pub fn skip<P>(
&self,
count: usize,
cancellable: Option<&P>
) -> Result<isize, Error> where
P: IsA<Cancellable>,
&self,
count: usize,
cancellable: Option<&P>
) -> Result<isize, Error> where
P: IsA<Cancellable>,
pub fn skip_async<P, Q>(
&self,
count: usize,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<isize, Error>) + Send,
&self,
count: usize,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<isize, Error>) + Send,
pub fn skip_async_future(
&self,
count: usize,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<isize, Error>> + 'static, Global>>
&self,
count: usize,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<isize, Error>> + 'static, Global>>
Implementors
impl<O> InputStreamExt for O where
O: IsA<InputStream>,
O: IsA<InputStream>,
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 has_pending(&self) -> bool
pub fn is_closed(&self) -> bool
pub fn read_bytes<P>(
&self,
count: usize,
cancellable: Option<&P>
) -> Result<Bytes, Error> where
P: IsA<Cancellable>,
&self,
count: usize,
cancellable: Option<&P>
) -> Result<Bytes, Error> where
P: IsA<Cancellable>,
pub fn read_bytes_async<P, Q>(
&self,
count: usize,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<Bytes, Error>) + Send,
&self,
count: usize,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<Bytes, Error>) + Send,
pub fn read_bytes_async_future(
&self,
count: usize,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + 'static, Global>>
&self,
count: usize,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + 'static, Global>>
pub fn set_pending(&self) -> Result<(), Error>
pub fn skip<P>(
&self,
count: usize,
cancellable: Option<&P>
) -> Result<isize, Error> where
P: IsA<Cancellable>,
&self,
count: usize,
cancellable: Option<&P>
) -> Result<isize, Error> where
P: IsA<Cancellable>,
pub fn skip_async<P, Q>(
&self,
count: usize,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<isize, Error>) + Send,
&self,
count: usize,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<isize, Error>) + Send,
pub fn skip_async_future(
&self,
count: usize,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<isize, Error>> + 'static, Global>>
&self,
count: usize,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<isize, Error>> + 'static, Global>>