[][src]Struct dbus_tree::MethodErr

pub struct MethodErr(_, _);

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

Unlike the "Error" struct, this is a Rust native struct.

Implementations

impl MethodErr[src]

pub fn invalid_arg<T>(a: &T) -> MethodErr where
    T: Debug + ?Sized
[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>(a: &T) -> MethodErr where
    T: Display + ?Sized
[src]

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

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

Create a MethodErr that the Object path was unknown.

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

Create a MethodErr that the Interface was unknown.

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

Create a MethodErr that the Method was unknown.

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

Create a MethodErr that the Property was unknown.

pub fn ro_property<T>(a: &T) -> MethodErr where
    T: Display + ?Sized
[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 Display for MethodErr[src]

impl Eq for MethodErr[src]

impl Error for MethodErr[src]

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

impl From<Error> for MethodErr[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> 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.