[][src]Struct dbus_strings::ErrorName

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

A D-Bus error name is usually something like "org.freedesktop.DBus.Error.Failed"

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 ErrorName[src]

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

Type conversion to DBusStr.

Trait Implementations

impl AsRef<DBusStr> for ErrorName[src]

impl AsRef<str> for ErrorName[src]

impl Borrow<ErrorName> for ErrorNameBuf[src]

impl Debug for ErrorName[src]

impl Deref for ErrorName[src]

type Target = str

The resulting type after dereferencing.

impl Display for ErrorName[src]

impl Eq for ErrorName[src]

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

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

impl Hash for ErrorName[src]

impl Ord for ErrorName[src]

impl PartialEq<ErrorName> for ErrorName[src]

impl PartialOrd<ErrorName> for ErrorName[src]

impl StringLike for ErrorName[src]

impl StructuralEq for ErrorName[src]

impl StructuralPartialEq for ErrorName[src]

impl ToOwned for ErrorName[src]

type Owned = ErrorNameBuf

The resulting type after obtaining ownership.

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

type Error = InvalidStringError

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a str> for &'a ErrorName[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]