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 duplicate 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 for TypeMismatchError
impl PartialEq for TypeMismatchError
impl Copy for TypeMismatchError
impl Eq for TypeMismatchError
impl StructuralPartialEq for TypeMismatchError
Auto Trait Implementations§
impl Freeze for TypeMismatchError
impl RefUnwindSafe for TypeMismatchError
impl Send for TypeMismatchError
impl Sync for TypeMismatchError
impl Unpin for TypeMismatchError
impl UnwindSafe for TypeMismatchError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more