[][src]Struct dbus::arg::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 Arg for OwnedFd[src]

impl Append for OwnedFd[src]

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

impl RefArg for OwnedFd[src]

impl DictKey for OwnedFd[src]

impl Drop for OwnedFd[src]

impl Clone for OwnedFd[src]

impl PartialOrd<OwnedFd> for OwnedFd[src]

impl PartialEq<OwnedFd> for OwnedFd[src]

impl From<OwnedFd> for MessageItem[src]

impl Debug for OwnedFd[src]

impl<'a> TryFrom<&'a MessageItem> for &'a OwnedFd[src]

type Error = ()

The type returned in the event of a conversion error.

impl AsRawFd for OwnedFd[src]

Auto Trait Implementations

impl Send for OwnedFd

impl Unpin for OwnedFd

impl Sync for OwnedFd

impl UnwindSafe for OwnedFd

impl RefUnwindSafe for OwnedFd

Blanket Implementations

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> From<T> for 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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