[][src]Struct dbus_strings::BusName

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

A D-Bus bus name is either something like "com.example.MyService" or ":1.54"

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

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

Type conversion to DBusStr.

Trait Implementations

impl AsRef<DBusStr> for BusName[src]

impl AsRef<str> for BusName[src]

impl Borrow<BusName> for BusNameBuf[src]

impl Debug for BusName[src]

impl Deref for BusName[src]

type Target = str

The resulting type after dereferencing.

impl Display for BusName[src]

impl Eq for BusName[src]

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

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

impl Hash for BusName[src]

impl Ord for BusName[src]

impl PartialEq<BusName> for BusName[src]

impl PartialOrd<BusName> for BusName[src]

impl StringLike for BusName[src]

impl StructuralEq for BusName[src]

impl StructuralPartialEq for BusName[src]

impl ToOwned for BusName[src]

type Owned = BusNameBuf

The resulting type after obtaining ownership.

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

type Error = InvalidStringError

The type returned in the event of a conversion error.

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

type Error = InvalidStringError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for BusName

impl Send for BusName

impl Sync for BusName

impl Unpin for BusName

impl UnwindSafe for BusName

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]