[][src]Struct dbus_strings::SignatureSingleBuf

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

A D-Bus type signature of a single type, e g "b" or "a{sv}" but not "ii"

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 SignatureSingleBuf[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 = SignatureSingle>

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

Type conversion to DBusStr.

Trait Implementations

impl Borrow<SignatureSingle> for SignatureSingleBuf[src]

impl Clone for SignatureSingleBuf[src]

impl Debug for SignatureSingleBuf[src]

impl Deref for SignatureSingleBuf[src]

type Target = SignatureSingle

The resulting type after dereferencing.

impl Display for SignatureSingleBuf[src]

impl Eq for SignatureSingleBuf[src]

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

impl From<SignatureSingleBuf> for SignatureMultiBuf[src]

impl<'a> From<SignatureSingleBuf> for Cow<'a, SignatureSingle>[src]

impl From<SignatureSingleBuf> for DBusString[src]

impl Hash for SignatureSingleBuf[src]

impl Ord for SignatureSingleBuf[src]

impl PartialEq<SignatureSingleBuf> for SignatureSingleBuf[src]

impl PartialOrd<SignatureSingleBuf> for SignatureSingleBuf[src]

impl StructuralEq for SignatureSingleBuf[src]

impl StructuralPartialEq for SignatureSingleBuf[src]

impl TryFrom<DBusString> for SignatureSingleBuf[src]

type Error = InvalidStringError

The type returned in the event of a conversion error.

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