Struct dbus_crossroads::MethodErr
source · [−]pub struct MethodErr(_, _);
Expand description
A D-Bus Method Error, containing an error name and a description.
Unlike the “Error” struct, this is a Rust native struct.
Implementations
sourceimpl MethodErr
impl MethodErr
sourcepub fn invalid_arg<T>(a: &T) -> MethodErrwhere
T: Debug + ?Sized,
pub fn invalid_arg<T>(a: &T) -> MethodErrwhere
T: Debug + ?Sized,
Create an Invalid Args MethodErr.
sourcepub fn failed<T>(a: &T) -> MethodErrwhere
T: Display + ?Sized,
pub fn failed<T>(a: &T) -> MethodErrwhere
T: Display + ?Sized,
Create a MethodErr that the method failed in the way specified.
sourcepub fn no_path<T>(a: &T) -> MethodErrwhere
T: Display + ?Sized,
pub fn no_path<T>(a: &T) -> MethodErrwhere
T: Display + ?Sized,
Create a MethodErr that the Object path was unknown.
sourcepub fn no_interface<T>(a: &T) -> MethodErrwhere
T: Display + ?Sized,
pub fn no_interface<T>(a: &T) -> MethodErrwhere
T: Display + ?Sized,
Create a MethodErr that the Interface was unknown.
sourcepub fn no_method<T>(a: &T) -> MethodErrwhere
T: Display + ?Sized,
pub fn no_method<T>(a: &T) -> MethodErrwhere
T: Display + ?Sized,
Create a MethodErr that the Method was unknown.
sourcepub fn no_property<T>(a: &T) -> MethodErrwhere
T: Display + ?Sized,
pub fn no_property<T>(a: &T) -> MethodErrwhere
T: Display + ?Sized,
Create a MethodErr that the Property was unknown.
sourcepub fn ro_property<T>(a: &T) -> MethodErrwhere
T: Display + ?Sized,
pub fn ro_property<T>(a: &T) -> MethodErrwhere
T: Display + ?Sized,
Create a MethodErr that the Property was read-only.
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Description accessor
sourcepub fn to_message(&self, msg: &Message) -> Message
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
sourceimpl Error for MethodErr
impl Error for MethodErr
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<TypeMismatchError> for MethodErr
impl From<TypeMismatchError> for MethodErr
sourcefn from(t: TypeMismatchError) -> MethodErr
fn from(t: TypeMismatchError) -> MethodErr
Converts to this type from the input type.
sourceimpl Ord for MethodErr
impl Ord for MethodErr
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<MethodErr> for MethodErr
impl PartialOrd<MethodErr> for MethodErr
sourcefn partial_cmp(&self, other: &MethodErr) -> Option<Ordering>
fn partial_cmp(&self, other: &MethodErr) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for MethodErr
impl StructuralEq for MethodErr
impl StructuralPartialEq for MethodErr
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more