Struct dbus::Error [−][src]
pub struct Error { /* fields omitted */ }
D-Bus Error wrapper.
Methods
impl Error
[src]
impl Error
pub fn new_custom(name: &str, message: &str) -> Error
[src]
pub fn new_custom(name: &str, message: &str) -> Error
Create a new custom D-Bus Error.
pub fn name(&self) -> Option<&str>
[src]
pub fn name(&self) -> Option<&str>
Error name/type, e g 'org.freedesktop.DBus.Error.Failed'
pub fn message(&self) -> Option<&str>
[src]
pub fn message(&self) -> Option<&str>
Custom message, e g 'Could not find a matching object path'
Trait Implementations
impl From<dbusError> for MethodErr
[src]
impl From<dbusError> for MethodErr
impl Send for Error
[src]
impl Send for Error
impl Sync for Error
[src]
impl Sync for Error
impl Drop for Error
[src]
impl Drop for Error
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<TypeMismatchError> for Error
[src]
impl From<TypeMismatchError> for Error
fn from(t: TypeMismatchError) -> Error
[src]
fn from(t: TypeMismatchError) -> Error
Performs the conversion.
impl From<MethodErr> for Error
[src]
impl From<MethodErr> for Error