[−][src]Struct dbus::arg::OwnedFd
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]
fn append_by_ref(&self, i: &mut IterAppend)
[src]
fn append(self, ia: &mut IterAppend) where
Self: Sized,
[src]
Self: Sized,
impl<'a> Get<'a> for OwnedFd
[src]
impl RefArg for OwnedFd
[src]
fn arg_type(&self) -> ArgType
[src]
fn signature(&self) -> Signature<'static>
[src]
fn append(&self, i: &mut IterAppend)
[src]
fn as_any(&self) -> &dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_i64(&self) -> Option<i64>
[src]
fn as_u64(&self) -> Option<u64>
[src]
fn as_f64(&self) -> Option<f64>
[src]
fn as_str(&self) -> Option<&str>
[src]
fn box_clone(&self) -> Box<dyn RefArg + 'static>
[src]
fn as_iter<'a>(
&'a self
) -> Option<Box<dyn Iterator<Item = &'a dyn RefArg> + 'a>>
[src]
&'a self
) -> Option<Box<dyn Iterator<Item = &'a dyn RefArg> + 'a>>
impl DictKey for OwnedFd
[src]
impl Drop for OwnedFd
[src]
impl Clone for OwnedFd
[src]
impl PartialOrd<OwnedFd> for OwnedFd
[src]
fn partial_cmp(&self, other: &OwnedFd) -> Option<Ordering>
[src]
fn lt(&self, other: &OwnedFd) -> bool
[src]
fn le(&self, other: &OwnedFd) -> bool
[src]
fn gt(&self, other: &OwnedFd) -> bool
[src]
fn ge(&self, other: &OwnedFd) -> bool
[src]
impl PartialEq<OwnedFd> for OwnedFd
[src]
impl From<OwnedFd> for MessageItem
[src]
fn from(i: OwnedFd) -> 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.
fn try_from(i: &'a MessageItem) -> Result<&'a OwnedFd, ()>
[src]
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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,