[][src]Struct dbus_strings::InterfaceNameBuf

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

A D-Bus interface name is usually something like "org.freedesktop.DBus"

For exact rules see the D-Bus specification.

Like String and CString, this struct is an owned buffer. It Derefs to its unsized variant.

Methods

impl InterfaceNameBuf[src]

pub fn new<S: Into<String>>(s: S) -> Result<Self, InvalidStringError>[src]

Creates a new string.

pub fn into_inner(self) -> String[src]

Unwraps the inner String.

Methods from Deref<Target = InterfaceName>

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

Type conversion to DBusStr.

Trait Implementations

impl Borrow<InterfaceName> for InterfaceNameBuf[src]

impl Clone for InterfaceNameBuf[src]

impl Debug for InterfaceNameBuf[src]

impl Deref for InterfaceNameBuf[src]

type Target = InterfaceName

The resulting type after dereferencing.

impl Display for InterfaceNameBuf[src]

impl Eq for InterfaceNameBuf[src]

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

impl<'a> From<InterfaceNameBuf> for Cow<'a, InterfaceName>[src]

impl From<InterfaceNameBuf> for DBusString[src]

impl Hash for InterfaceNameBuf[src]

impl Ord for InterfaceNameBuf[src]

impl PartialEq<InterfaceNameBuf> for InterfaceNameBuf[src]

impl PartialOrd<InterfaceNameBuf> for InterfaceNameBuf[src]

impl StructuralEq for InterfaceNameBuf[src]

impl StructuralPartialEq for InterfaceNameBuf[src]

impl TryFrom<DBusString> for InterfaceNameBuf[src]

type Error = InvalidStringError

The type returned in the event of a conversion error.

impl TryFrom<String> for InterfaceNameBuf[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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.