pub struct Descriptor(/* private fields */);Expand description
An open file or connection, carried beside a message on a local connection.
Implementations§
Source§impl Descriptor
impl Descriptor
Trait Implementations§
Source§impl AsFd for Descriptor
Available on Unix only.
impl AsFd for Descriptor
Available on Unix only.
Source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
Source§impl AsRawFd for Descriptor
Available on Unix only.
impl AsRawFd for Descriptor
Available on Unix only.
Source§impl Debug for Descriptor
impl Debug for Descriptor
Source§impl From<Descriptor> for OwnedFd
Available on Unix only.
impl From<Descriptor> for OwnedFd
Available on Unix only.
Source§fn from(descriptor: Descriptor) -> Self
fn from(descriptor: Descriptor) -> Self
Converts to this type from the input type.
Source§impl From<Descriptor> for Stream
Available on Unix only.
impl From<Descriptor> for Stream
Available on Unix only.
Source§fn from(descriptor: Descriptor) -> Self
fn from(descriptor: Descriptor) -> Self
Converts to this type from the input type.
Source§impl From<OwnedFd> for Descriptor
Available on Unix only.
impl From<OwnedFd> for Descriptor
Available on Unix only.
Source§impl From<UnixStream> for Descriptor
Available on Unix only.
impl From<UnixStream> for Descriptor
Available on Unix only.
Source§impl FromRawFd for Descriptor
Available on Unix only.
impl FromRawFd for Descriptor
Available on Unix only.
Source§unsafe fn from_raw_fd(fd: RawFd) -> Self
unsafe fn from_raw_fd(fd: RawFd) -> Self
§Safety
fd is an open descriptor nothing else owns.
Source§impl IntoRawFd for Descriptor
Available on Unix only.
impl IntoRawFd for Descriptor
Available on Unix only.
Source§fn into_raw_fd(self) -> RawFd
fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read more
Auto Trait Implementations§
impl Forget for Descriptor
impl Freeze for Descriptorwhere
I32NotAllOnes: Freeze,
impl Move for Descriptor
impl RefUnwindSafe for Descriptorwhere
I32NotAllOnes: RefUnwindSafe,
impl Send for Descriptorwhere
I32NotAllOnes: Send,
impl Sync for Descriptorwhere
I32NotAllOnes: Sync,
impl Unpin for Descriptorwhere
I32NotAllOnes: Unpin,
impl UnsafeUnpin for Descriptorwhere
I32NotAllOnes: UnsafeUnpin,
impl UnwindSafe for Descriptorwhere
I32NotAllOnes: 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