Enum OwnedFd
pub enum OwnedFd {
File(OwnedHandle),
Socket(OwnedSocket),
}Expand description
Owned handle or socket on Windows.
Variants§
Trait Implementations§
§impl From<ChildStderr> for OwnedFd
impl From<ChildStderr> for OwnedFd
§fn from(value: ChildStderr) -> OwnedFd
fn from(value: ChildStderr) -> OwnedFd
Converts to this type from the input type.
§impl From<ChildStdin> for OwnedFd
impl From<ChildStdin> for OwnedFd
§fn from(value: ChildStdin) -> OwnedFd
fn from(value: ChildStdin) -> OwnedFd
Converts to this type from the input type.
§impl From<ChildStdout> for OwnedFd
impl From<ChildStdout> for OwnedFd
§fn from(value: ChildStdout) -> OwnedFd
fn from(value: ChildStdout) -> OwnedFd
Converts to this type from the input type.
§impl From<OwnedHandle> for OwnedFd
impl From<OwnedHandle> for OwnedFd
§fn from(value: OwnedHandle) -> OwnedFd
fn from(value: OwnedHandle) -> OwnedFd
Converts to this type from the input type.
§impl From<OwnedSocket> for OwnedFd
impl From<OwnedSocket> for OwnedFd
§fn from(value: OwnedSocket) -> OwnedFd
fn from(value: OwnedSocket) -> OwnedFd
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more