pub enum IoResource {
File(File),
TcpStream(TcpStream),
TcpListener(TcpListener),
UdpSocket(UdpSocket),
ChildProcess(Child),
PipeReader(ChildStdout),
PipeWriter(ChildStdin),
PipeReaderErr(ChildStderr),
Custom(Box<dyn Any + Send>),
}Expand description
The underlying OS resource wrapped by an IoHandle.
Variants§
File(File)
TcpStream(TcpStream)
TcpListener(TcpListener)
UdpSocket(UdpSocket)
ChildProcess(Child)
PipeReader(ChildStdout)
PipeWriter(ChildStdin)
PipeReaderErr(ChildStderr)
Custom(Box<dyn Any + Send>)
Type-erased resource for custom I/O handles (e.g. memoized transports).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IoResource
impl !RefUnwindSafe for IoResource
impl Send for IoResource
impl !Sync for IoResource
impl Unpin for IoResource
impl UnsafeUnpin for IoResource
impl !UnwindSafe for IoResource
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