pub struct IOReader<IO, F: FnMut(&mut IO, Result<IODirection, Error>)> {
pub io: IO,
pub f: F,
}Expand description
The most common I/O object is one from which you can read asynchronously. This is a simple convenience wrapper for that kind of I/O object.
Fields§
§io: IO§f: FTrait Implementations§
Auto Trait Implementations§
impl<IO, F> Freeze for IOReader<IO, F>
impl<IO, F> RefUnwindSafe for IOReader<IO, F>where
IO: RefUnwindSafe,
F: RefUnwindSafe,
impl<IO, F> Send for IOReader<IO, F>
impl<IO, F> Sync for IOReader<IO, F>
impl<IO, F> Unpin for IOReader<IO, F>
impl<IO, F> UnwindSafe for IOReader<IO, F>where
IO: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more