pub struct OwnedFd { /* private fields */ }
Expand description
An RAII wrapper around Fd to ensure that file descriptor is closed
when the scope ends. Enable the stdfd
feature to use std’s OwnedFd instead.
Implementations§
Trait Implementations§
source§impl Append for OwnedFd
impl Append for OwnedFd
source§fn append_by_ref(&self, i: &mut IterAppend<'_>)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
Performs the append operation by borrowing self.
source§fn append(self, ia: &mut IterAppend<'_>)where
Self: Sized,
fn append(self, ia: &mut IterAppend<'_>)where
Self: Sized,
Performs the append operation by consuming self.
source§impl From<OwnedFd> for MessageItem
impl From<OwnedFd> for MessageItem
source§fn from(i: OwnedFd) -> MessageItem
fn from(i: OwnedFd) -> MessageItem
Converts to this type from the input type.
source§impl FromRawFd for OwnedFd
impl FromRawFd for OwnedFd
source§unsafe fn from_raw_fd(fd: RawFd) -> Self
unsafe fn from_raw_fd(fd: RawFd) -> Self
Constructs a new instance of
Self
from the given raw file
descriptor. Read moresource§impl IntoRawFd for OwnedFd
impl IntoRawFd for OwnedFd
source§fn into_raw_fd(self) -> RawFd
fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read more
source§impl PartialEq<OwnedFd> for OwnedFd
impl PartialEq<OwnedFd> for OwnedFd
source§impl PartialOrd<OwnedFd> for OwnedFd
impl PartialOrd<OwnedFd> for OwnedFd
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl RefArg for OwnedFd
impl RefArg for OwnedFd
source§fn signature(&self) -> Signature<'static>
fn signature(&self) -> Signature<'static>
The corresponding D-Bus type signature for this type.
source§fn append(&self, i: &mut IterAppend<'_>)
fn append(&self, i: &mut IterAppend<'_>)
Performs the append operation.
source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Transforms this argument to Any (which can be downcasted to read the current value). Read more
source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Transforms this argument to Any (which can be downcasted to read the current value). Read more
source§fn box_clone(&self) -> Box<dyn RefArg + 'static>
fn box_clone(&self) -> Box<dyn RefArg + 'static>
Deep clone of the RefArg, causing the result to be ’static. Read more
source§fn as_iter<'a>(
&'a self
) -> Option<Box<dyn Iterator<Item = &'a dyn RefArg> + 'a>>
fn as_iter<'a>(
&'a self
) -> Option<Box<dyn Iterator<Item = &'a dyn RefArg> + 'a>>
Try to read the argument as an iterator. Read more