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
sourceimpl Append for OwnedFd
impl Append for OwnedFd
sourcefn append_by_ref(&self, i: &mut IterAppend<'_>)
fn append_by_ref(&self, i: &mut IterAppend<'_>)
Performs the append operation by borrowing self.
sourcefn append(self, ia: &mut IterAppend<'_>)where
Self: Sized,
fn append(self, ia: &mut IterAppend<'_>)where
Self: Sized,
Performs the append operation by consuming self.
sourceimpl From<OwnedFd> for MessageItem
impl From<OwnedFd> for MessageItem
sourcefn from(i: OwnedFd) -> MessageItem
fn from(i: OwnedFd) -> MessageItem
Converts to this type from the input type.
sourceimpl FromRawFd for OwnedFd
impl FromRawFd for OwnedFd
sourceunsafe 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 moresourceimpl IntoRawFd for OwnedFd
impl IntoRawFd for OwnedFd
sourcefn into_raw_fd(self) -> RawFd
fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read more
sourceimpl PartialOrd<OwnedFd> for OwnedFd
impl PartialOrd<OwnedFd> for OwnedFd
sourcefn partial_cmp(&self, other: &OwnedFd) -> Option<Ordering>
fn partial_cmp(&self, other: &OwnedFd) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl RefArg for OwnedFd
impl RefArg for OwnedFd
sourcefn signature(&self) -> Signature<'static>
fn signature(&self) -> Signature<'static>
The corresponding D-Bus type signature for this type.
sourcefn append(&self, i: &mut IterAppend<'_>)
fn append(&self, i: &mut IterAppend<'_>)
Performs the append operation.
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourceimpl<'a> TryFrom<&'a MessageItem> for &'a OwnedFd
impl<'a> TryFrom<&'a MessageItem> for &'a OwnedFd
impl DictKey for OwnedFd
impl StructuralPartialEq for OwnedFd
Auto Trait Implementations
impl RefUnwindSafe for OwnedFd
impl Send for OwnedFd
impl Sync for OwnedFd
impl Unpin for OwnedFd
impl UnwindSafe for OwnedFd
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more