[−][src]Struct dbus_strings::ErrorNameBuf
A D-Bus error name is usually something like "org.freedesktop.DBus.Error.Failed"
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 ErrorNameBuf
[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 = ErrorName>
pub fn as_dbus_str(&self) -> &DBusStr
[src]
Type conversion to DBusStr.
Trait Implementations
impl Borrow<ErrorName> for ErrorNameBuf
[src]
impl Clone for ErrorNameBuf
[src]
fn clone(&self) -> ErrorNameBuf
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ErrorNameBuf
[src]
impl Deref for ErrorNameBuf
[src]
impl Display for ErrorNameBuf
[src]
impl Eq for ErrorNameBuf
[src]
impl<'a> From<&'a ErrorNameBuf> for Cow<'a, ErrorName>
[src]
fn from(s: &'a ErrorNameBuf) -> Cow<'a, ErrorName>
[src]
impl<'a> From<ErrorNameBuf> for Cow<'a, ErrorName>
[src]
fn from(s: ErrorNameBuf) -> Cow<'a, ErrorName>
[src]
impl From<ErrorNameBuf> for DBusString
[src]
fn from(s: ErrorNameBuf) -> DBusString
[src]
impl Hash for ErrorNameBuf
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ErrorNameBuf
[src]
fn cmp(&self, other: &ErrorNameBuf) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ErrorNameBuf> for ErrorNameBuf
[src]
fn eq(&self, other: &ErrorNameBuf) -> bool
[src]
fn ne(&self, other: &ErrorNameBuf) -> bool
[src]
impl PartialOrd<ErrorNameBuf> for ErrorNameBuf
[src]
fn partial_cmp(&self, other: &ErrorNameBuf) -> Option<Ordering>
[src]
fn lt(&self, other: &ErrorNameBuf) -> bool
[src]
fn le(&self, other: &ErrorNameBuf) -> bool
[src]
fn gt(&self, other: &ErrorNameBuf) -> bool
[src]
fn ge(&self, other: &ErrorNameBuf) -> bool
[src]
impl StructuralEq for ErrorNameBuf
[src]
impl StructuralPartialEq for ErrorNameBuf
[src]
impl TryFrom<DBusString> for ErrorNameBuf
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: DBusString) -> Result<ErrorNameBuf, Self::Error>
[src]
impl TryFrom<String> for ErrorNameBuf
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: String) -> Result<ErrorNameBuf, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for ErrorNameBuf
impl Send for ErrorNameBuf
impl Sync for ErrorNameBuf
impl Unpin for ErrorNameBuf
impl UnwindSafe for ErrorNameBuf
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,