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 Descriptor
impl Move for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnsafeUnpin for Descriptor
impl UnwindSafe for Descriptor
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