Struct dbus::arg::TypeMismatchError
source · pub struct TypeMismatchError { /* private fields */ }
Expand description
Error struct to indicate a D-Bus argument type mismatch.
Might be returned from iter::read()
.
Implementations§
source§impl TypeMismatchError
impl TypeMismatchError
sourcepub fn expected_arg_type(&self) -> ArgType
pub fn expected_arg_type(&self) -> ArgType
The ArgType we were trying to read, but failed
sourcepub fn found_arg_type(&self) -> ArgType
pub fn found_arg_type(&self) -> ArgType
The ArgType we should have been trying to read, if we wanted the read to succeed
Trait Implementations§
source§impl Clone for TypeMismatchError
impl Clone for TypeMismatchError
source§fn clone(&self) -> TypeMismatchError
fn clone(&self) -> TypeMismatchError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TypeMismatchError
impl Debug for TypeMismatchError
source§impl Display for TypeMismatchError
impl Display for TypeMismatchError
source§impl Error for TypeMismatchError
impl Error for TypeMismatchError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl From<TypeMismatchError> for Error
impl From<TypeMismatchError> for Error
source§fn from(t: TypeMismatchError) -> Error
fn from(t: TypeMismatchError) -> Error
Converts to this type from the input type.
source§impl From<TypeMismatchError> for MethodErr
impl From<TypeMismatchError> for MethodErr
source§fn from(t: TypeMismatchError) -> MethodErr
fn from(t: TypeMismatchError) -> MethodErr
Converts to this type from the input type.
source§impl PartialEq<TypeMismatchError> for TypeMismatchError
impl PartialEq<TypeMismatchError> for TypeMismatchError
source§fn eq(&self, other: &TypeMismatchError) -> bool
fn eq(&self, other: &TypeMismatchError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.