Struct dbus::OwnedFd [] [src]

pub struct OwnedFd {
    // some fields omitted
}

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

Methods

impl OwnedFd
[src]

fn new(fd: RawFd) -> OwnedFd

Create a new OwnedFd from a RawFd.

fn into_fd(self) -> RawFd

Convert an OwnedFD back into a RawFd.

Trait Implementations

impl Drop for OwnedFd
[src]

fn drop(&mut self)

impl Clone for OwnedFd
[src]

fn clone(&self) -> OwnedFd

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

impl AsRawFd for OwnedFd
[src]

fn as_raw_fd(&self) -> RawFd

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

fn from(i: &'a MessageItem) -> Result<&'a OwnedFd, ()>

impl Arg for OwnedFd
[src]

fn arg_type() -> i32

fn signature() -> Signature<'static>

impl Append for OwnedFd
[src]

fn append(self, i: &mut IterAppend)

impl DictKey for OwnedFd
[src]

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

fn get(i: &mut Iter) -> Option<Self>

Derived Implementations

impl PartialOrd for OwnedFd
[src]

fn partial_cmp(&self, __arg_0: &OwnedFd) -> Option<Ordering>

fn lt(&self, __arg_0: &OwnedFd) -> bool

fn le(&self, __arg_0: &OwnedFd) -> bool

fn gt(&self, __arg_0: &OwnedFd) -> bool

fn ge(&self, __arg_0: &OwnedFd) -> bool

impl PartialEq for OwnedFd
[src]

fn eq(&self, __arg_0: &OwnedFd) -> bool

fn ne(&self, __arg_0: &OwnedFd) -> bool

impl Debug for OwnedFd
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result