[][src]Struct dbus_strings::DBusString

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

A D-Bus string must be valid UTF-8 and contain no interior nul bytes.

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

Methods

impl DBusString[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.

Trait Implementations

impl Borrow<DBusStr> for DBusString[src]

impl Clone for DBusString[src]

impl Debug for DBusString[src]

impl Deref for DBusString[src]

type Target = DBusStr

The resulting type after dereferencing.

impl Display for DBusString[src]

impl Eq for DBusString[src]

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

impl From<BusNameBuf> for DBusString[src]

impl<'a> From<DBusString> for Cow<'a, DBusStr>[src]

impl From<ErrorNameBuf> for DBusString[src]

impl From<InterfaceNameBuf> for DBusString[src]

impl From<MemberNameBuf> for DBusString[src]

impl From<ObjectPathBuf> for DBusString[src]

impl From<SignatureMultiBuf> for DBusString[src]

impl From<SignatureSingleBuf> for DBusString[src]

impl Hash for DBusString[src]

impl Ord for DBusString[src]

impl PartialEq<DBusString> for DBusString[src]

impl PartialOrd<DBusString> for DBusString[src]

impl StructuralEq for DBusString[src]

impl StructuralPartialEq for DBusString[src]

impl TryFrom<DBusString> for InterfaceNameBuf[src]

type Error = InvalidStringError

The type returned in the event of a conversion error.

impl TryFrom<DBusString> for MemberNameBuf[src]

type Error = InvalidStringError

The type returned in the event of a conversion error.

impl TryFrom<DBusString> for ErrorNameBuf[src]

type Error = InvalidStringError

The type returned in the event of a conversion error.

impl TryFrom<DBusString> for BusNameBuf[src]

type Error = InvalidStringError

The type returned in the event of a conversion error.

impl TryFrom<DBusString> for SignatureSingleBuf[src]

type Error = InvalidStringError

The type returned in the event of a conversion error.

impl TryFrom<DBusString> for SignatureMultiBuf[src]

type Error = InvalidStringError

The type returned in the event of a conversion error.

impl TryFrom<DBusString> for ObjectPathBuf[src]

type Error = InvalidStringError

The type returned in the event of a conversion error.

impl TryFrom<String> for DBusString[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.