[][src]Struct dbus::tree::MethodErr

pub struct MethodErr(_, _);

A D-Bus Method Error, containing an error name and a description.

Implementations

impl MethodErr[src]

pub fn invalid_arg<T: Debug + ?Sized>(a: &T) -> MethodErr[src]

Create an Invalid Args MethodErr.

pub fn no_arg() -> MethodErr[src]

Create a MethodErr that there are not enough arguments given.

pub fn failed<T: Display + ?Sized>(a: &T) -> MethodErr[src]

Create a MethodErr that the method failed in the way specified.

pub fn no_path<T: Display + ?Sized>(a: &T) -> MethodErr[src]

Create a MethodErr that the Object path was unknown.

pub fn no_interface<T: Display + ?Sized>(a: &T) -> MethodErr[src]

Create a MethodErr that the Interface was unknown.

pub fn no_method<T: Display + ?Sized>(a: &T) -> MethodErr[src]

Create a MethodErr that the Method was unknown.

pub fn no_property<T: Display + ?Sized>(a: &T) -> MethodErr[src]

Create a MethodErr that the Property was unknown.

pub fn ro_property<T: Display + ?Sized>(a: &T) -> MethodErr[src]

Create a MethodErr that the Property was read-only.

pub fn errorname(&self) -> &ErrorName<'static>[src]

Error name accessor

pub fn description(&self) -> &str[src]

Description accessor

pub fn to_message(&self, msg: &Message) -> Message[src]

Creates an error reply from a method call message.

Note: You normally don't need to use this function, as it is called internally from Tree::handle.

Trait Implementations

impl Clone for MethodErr[src]

impl Debug for MethodErr[src]

impl Eq for MethodErr[src]

impl<T: Into<ErrorName<'static>>, M: Into<String>> From<(T, M)> for MethodErr[src]

impl From<Error> for MethodErr[src]

impl From<MethodErr> for Error[src]

impl From<TypeMismatchError> for MethodErr[src]

impl Ord for MethodErr[src]

impl PartialEq<MethodErr> for MethodErr[src]

impl PartialOrd<MethodErr> for MethodErr[src]

impl StructuralEq for MethodErr[src]

impl StructuralPartialEq for MethodErr[src]

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, 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.