pub enum OwnedFd {
File(OwnedHandle),
Socket(OwnedSocket),
}
Expand description
Owned handle or socket on Windows.
Variants§
Trait Implementations§
Source§impl From<ChildStderr> for OwnedFd
impl From<ChildStderr> for OwnedFd
Source§fn from(value: ChildStderr) -> Self
fn from(value: ChildStderr) -> Self
Converts to this type from the input type.
Source§impl From<ChildStdin> for OwnedFd
impl From<ChildStdin> for OwnedFd
Source§fn from(value: ChildStdin) -> Self
fn from(value: ChildStdin) -> Self
Converts to this type from the input type.
Source§impl From<ChildStdout> for OwnedFd
impl From<ChildStdout> for OwnedFd
Source§fn from(value: ChildStdout) -> Self
fn from(value: ChildStdout) -> Self
Converts to this type from the input type.
Source§impl From<OwnedHandle> for OwnedFd
impl From<OwnedHandle> for OwnedFd
Source§fn from(value: OwnedHandle) -> Self
fn from(value: OwnedHandle) -> Self
Converts to this type from the input type.
Source§impl From<OwnedSocket> for OwnedFd
impl From<OwnedSocket> for OwnedFd
Source§fn from(value: OwnedSocket) -> Self
fn from(value: OwnedSocket) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OwnedFd
impl RefUnwindSafe for OwnedFd
impl Send for OwnedFd
impl Sync for OwnedFd
impl Unpin for OwnedFd
impl UnwindSafe for OwnedFd
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