[][src]Struct dbus::OwnedFd

pub struct OwnedFd { /* fields omitted */ }

An RAII wrapper around Fd to ensure that file descriptor is closed when the scope ends.

Methods

impl OwnedFd[src]

pub fn new(fd: RawFd) -> OwnedFd[src]

Create a new OwnedFd from a RawFd.

pub fn into_fd(self) -> RawFd[src]

Convert an OwnedFD back into a RawFd.

Trait Implementations

impl<'a> FromMessageItem<'a> for &'a OwnedFd[src]

impl Arg for OwnedFd[src]

fn arg_type() -> ArgType[src]

Deprecated:

Use associated constant ARG_TYPE instead

The corresponding D-Bus argument type code; just returns ARG_TYPE. Read more

impl Append for OwnedFd[src]

impl<'a> Get<'a> for OwnedFd[src]

impl RefArg for OwnedFd[src]

fn as_iter<'a>(
    &'a self
) -> Option<Box<dyn Iterator<Item = &'a dyn RefArg> + 'a>>
[src]

Try to read the argument as an iterator. Read more

impl DictKey for OwnedFd[src]

impl From<OwnedFd> for MessageItem[src]

impl PartialEq<OwnedFd> for OwnedFd[src]

impl Clone for OwnedFd[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<OwnedFd> for OwnedFd[src]

impl Drop for OwnedFd[src]

impl Debug for OwnedFd[src]

impl AsRawFd for OwnedFd[src]

Auto Trait Implementations

impl Unpin for OwnedFd

impl Sync for OwnedFd

impl Send for OwnedFd

impl RefUnwindSafe for OwnedFd

impl UnwindSafe for OwnedFd

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]