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 UnsafeUnpin 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> FromFilelike for Twhere
T: From<OwnedHandle>,
impl<T> FromFilelike for Twhere
T: From<OwnedHandle>,
§fn from_filelike(owned: OwnedHandle) -> T
fn from_filelike(owned: OwnedHandle) -> T
Constructs a new instance of
Self from the given filelike object. Read more§fn from_into_filelike<Owned>(owned: Owned) -> Twhere
Owned: IntoFilelike,
fn from_into_filelike<Owned>(owned: Owned) -> Twhere
Owned: IntoFilelike,
Constructs a new instance of
Self from the given filelike object
converted from into_owned. Read more§impl<T> FromFilelike for Twhere
T: From<OwnedHandle>,
impl<T> FromFilelike for Twhere
T: From<OwnedHandle>,
§fn from_filelike(owned: OwnedHandle) -> T
fn from_filelike(owned: OwnedHandle) -> T
Constructs a new instance of
Self from the given filelike object. Read more§fn from_into_filelike<Owned>(owned: Owned) -> Twhere
Owned: IntoFilelike,
fn from_into_filelike<Owned>(owned: Owned) -> Twhere
Owned: IntoFilelike,
Constructs a new instance of
Self from the given filelike object
converted from into_owned. Read more§impl<T> FromHandle for Twhere
T: From<OwnedHandle>,
impl<T> FromHandle for Twhere
T: From<OwnedHandle>,
§fn from_handle(owned_handle: OwnedHandle) -> T
fn from_handle(owned_handle: OwnedHandle) -> T
👎Deprecated since 1.0.0:
FromHandle::from_handle is replaced by From<OwnedHandle>::from
Constructs a new instance of
Self from the given handle. Read more§fn from_into_handle<Owned>(into_owned: Owned) -> Self
fn from_into_handle<Owned>(into_owned: Owned) -> Self
§impl<T> FromHandle for Twhere
T: From<OwnedHandle>,
impl<T> FromHandle for Twhere
T: From<OwnedHandle>,
§fn from_handle(owned_handle: OwnedHandle) -> T
fn from_handle(owned_handle: OwnedHandle) -> T
👎Deprecated since 1.0.0:
FromHandle::from_handle is replaced by From<OwnedHandle>::from
Constructs a new instance of
Self from the given handle. Read more§fn from_into_handle<Owned>(into_owned: Owned) -> Self
fn from_into_handle<Owned>(into_owned: Owned) -> Self
§impl<T> FromSocket for Twhere
T: From<OwnedSocket>,
impl<T> FromSocket for Twhere
T: From<OwnedSocket>,
§fn from_socket(owned_socket: OwnedSocket) -> T
fn from_socket(owned_socket: OwnedSocket) -> T
👎Deprecated since 1.0.0:
FromSocket::from_socket is replaced by From<OwnedSocket>::from
Constructs a new instance of
Self from the given socket.§fn from_into_socket<Owned>(into_owned: Owned) -> Self
fn from_into_socket<Owned>(into_owned: Owned) -> Self
Constructs a new instance of
Self from the given socket converted
from into_owned.§impl<T> FromSocket for Twhere
T: From<OwnedSocket>,
impl<T> FromSocket for Twhere
T: From<OwnedSocket>,
§fn from_socket(owned_socket: OwnedSocket) -> T
fn from_socket(owned_socket: OwnedSocket) -> T
👎Deprecated since 1.0.0:
FromSocket::from_socket is replaced by From<OwnedSocket>::from
Constructs a new instance of
Self from the given socket.§fn from_into_socket<Owned>(into_owned: Owned) -> Self
fn from_into_socket<Owned>(into_owned: Owned) -> Self
Constructs a new instance of
Self from the given socket converted
from into_owned.§impl<T> FromSocketlike for Twhere
T: From<OwnedSocket>,
impl<T> FromSocketlike for Twhere
T: From<OwnedSocket>,
§fn from_socketlike(owned: OwnedSocket) -> T
fn from_socketlike(owned: OwnedSocket) -> T
Constructs a new instance of
Self from the given socketlike object.§fn from_into_socketlike<Owned>(owned: Owned) -> Twhere
Owned: IntoSocketlike,
fn from_into_socketlike<Owned>(owned: Owned) -> Twhere
Owned: IntoSocketlike,
Constructs a new instance of
Self from the given socketlike object
converted from into_owned.§impl<T> FromSocketlike for Twhere
T: From<OwnedSocket>,
impl<T> FromSocketlike for Twhere
T: From<OwnedSocket>,
§fn from_socketlike(owned: OwnedSocket) -> T
fn from_socketlike(owned: OwnedSocket) -> T
Constructs a new instance of
Self from the given socketlike object.§fn from_into_socketlike<Owned>(owned: Owned) -> Twhere
Owned: IntoSocketlike,
fn from_into_socketlike<Owned>(owned: Owned) -> Twhere
Owned: IntoSocketlike,
Constructs a new instance of
Self from the given socketlike object
converted from into_owned.§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