[−][src]Struct dbus_tree::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]
T: Debug + ?Sized,
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]
T: Display + ?Sized,
Create a MethodErr that the method failed in the way specified.
pub fn no_path<T>(a: &T) -> MethodErr where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
Create a MethodErr that the Object path was unknown.
pub fn no_interface<T>(a: &T) -> MethodErr where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
Create a MethodErr that the Interface was unknown.
pub fn no_method<T>(a: &T) -> MethodErr where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
Create a MethodErr that the Method was unknown.
pub fn no_property<T>(a: &T) -> MethodErr where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
Create a MethodErr that the Property was unknown.
pub fn ro_property<T>(a: &T) -> MethodErr where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<T, M> From<(T, M)> for MethodErr where
M: Into<String>,
T: Into<ErrorName<'static>>,
[src]
M: Into<String>,
T: Into<ErrorName<'static>>,
impl From<Error> for MethodErr
[src]
impl From<TypeMismatchError> for MethodErr
[src]
fn from(t: TypeMismatchError) -> MethodErr
[src]
impl Ord for MethodErr
[src]
fn cmp(&self, other: &MethodErr) -> 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<MethodErr> for MethodErr
[src]
impl PartialOrd<MethodErr> for MethodErr
[src]
fn partial_cmp(&self, other: &MethodErr) -> Option<Ordering>
[src]
fn lt(&self, other: &MethodErr) -> bool
[src]
fn le(&self, other: &MethodErr) -> bool
[src]
fn gt(&self, other: &MethodErr) -> bool
[src]
fn ge(&self, other: &MethodErr) -> bool
[src]
impl StructuralEq for MethodErr
[src]
impl StructuralPartialEq for MethodErr
[src]
Auto Trait Implementations
impl RefUnwindSafe for MethodErr
impl Send for MethodErr
impl Sync for MethodErr
impl Unpin for MethodErr
impl UnwindSafe for MethodErr
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>,