[][src]Struct dbus_strings::ObjectPath

#[repr(transparent)]
pub struct ObjectPath(_);

A D-Bus object path is usually something like "/org/freedesktop/DBus".

For exact rules see the D-Bus specification.

Like str and CStr, this struct is unsized, which means that the way to access it is through a reference.

Methods

impl ObjectPath[src]

pub fn as_dbus_str(&self) -> &DBusStr[src]

Type conversion to DBusStr.

Trait Implementations

impl AsRef<DBusStr> for ObjectPath[src]

impl AsRef<str> for ObjectPath[src]

impl Borrow<ObjectPath> for ObjectPathBuf[src]

impl Debug for ObjectPath[src]

impl Deref for ObjectPath[src]

type Target = str

The resulting type after dereferencing.

impl Display for ObjectPath[src]

impl Eq for ObjectPath[src]

impl<'a> From<&'a ObjectPath> for Cow<'a, ObjectPath>[src]

impl<'a> From<&'a ObjectPath> for &'a DBusStr[src]

impl Hash for ObjectPath[src]

impl Ord for ObjectPath[src]

impl PartialEq<ObjectPath> for ObjectPath[src]

impl PartialOrd<ObjectPath> for ObjectPath[src]

impl StringLike for ObjectPath[src]

impl StructuralEq for ObjectPath[src]

impl StructuralPartialEq for ObjectPath[src]

impl ToOwned for ObjectPath[src]

type Owned = ObjectPathBuf

The resulting type after obtaining ownership.

impl<'a> TryFrom<&'a DBusStr> for &'a ObjectPath[src]

type Error = InvalidStringError

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a str> for &'a ObjectPath[src]

type Error = InvalidStringError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]