Struct dbus::tree::MethodErr [−][src]
pub struct MethodErr(_, _);
A D-Bus Method Error, containing an error name and a description.
Methods
impl MethodErr
[src]
impl MethodErr
pub fn invalid_arg<T: Debug>(a: &T) -> MethodErr
[src]
pub fn invalid_arg<T: Debug>(a: &T) -> MethodErr
Create an Invalid Args MethodErr.
pub fn no_arg() -> MethodErr
[src]
pub fn no_arg() -> MethodErr
Create a MethodErr that there are not enough arguments given.
pub fn failed<T: Display>(a: &T) -> MethodErr
[src]
pub fn failed<T: Display>(a: &T) -> MethodErr
Create a MethodErr that the method failed in the way specified.
pub fn no_interface<T: Display>(a: &T) -> MethodErr
[src]
pub fn no_interface<T: Display>(a: &T) -> MethodErr
Create a MethodErr that the Interface was unknown.
pub fn no_method<T: Display>(a: &T) -> MethodErr
[src]
pub fn no_method<T: Display>(a: &T) -> MethodErr
Create a MethodErr that the Method was unknown.
pub fn no_property<T: Display>(a: &T) -> MethodErr
[src]
pub fn no_property<T: Display>(a: &T) -> MethodErr
Create a MethodErr that the Property was unknown.
pub fn ro_property<T: Display>(a: &T) -> MethodErr
[src]
pub fn ro_property<T: Display>(a: &T) -> MethodErr
Create a MethodErr that the Property was read-only.
pub fn errorname(&self) -> &ErrorName<'static>
[src]
pub fn errorname(&self) -> &ErrorName<'static>
Error name accessor
pub fn description(&self) -> &str
[src]
pub fn description(&self) -> &str
Description accessor
pub fn to_message(&self, msg: &Message) -> Message
[src]
pub fn to_message(&self, msg: &Message) -> Message
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 Clone for MethodErr
fn clone(&self) -> MethodErr
[src]
fn clone(&self) -> MethodErr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for MethodErr
[src]
impl Debug for MethodErr
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialOrd for MethodErr
[src]
impl PartialOrd for MethodErr
fn partial_cmp(&self, other: &MethodErr) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &MethodErr) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &MethodErr) -> bool
[src]
fn lt(&self, other: &MethodErr) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &MethodErr) -> bool
[src]
fn le(&self, other: &MethodErr) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &MethodErr) -> bool
[src]
fn gt(&self, other: &MethodErr) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &MethodErr) -> bool
[src]
fn ge(&self, other: &MethodErr) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for MethodErr
[src]
impl Ord for MethodErr
fn cmp(&self, other: &MethodErr) -> Ordering
[src]
fn cmp(&self, other: &MethodErr) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialEq for MethodErr
[src]
impl PartialEq for MethodErr
fn eq(&self, other: &MethodErr) -> bool
[src]
fn eq(&self, other: &MethodErr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MethodErr) -> bool
[src]
fn ne(&self, other: &MethodErr) -> bool
This method tests for !=
.
impl Eq for MethodErr
[src]
impl Eq for MethodErr
impl From<TypeMismatchError> for MethodErr
[src]
impl From<TypeMismatchError> for MethodErr
fn from(t: TypeMismatchError) -> MethodErr
[src]
fn from(t: TypeMismatchError) -> MethodErr
Performs the conversion.
impl<T: Into<ErrorName<'static>>, M: Into<String>> From<(T, M)> for MethodErr
[src]
impl<T: Into<ErrorName<'static>>, M: Into<String>> From<(T, M)> for MethodErr
impl From<dbusError> for MethodErr
[src]
impl From<dbusError> for MethodErr
impl From<MethodErr> for Error
[src]
impl From<MethodErr> for Error