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
sourceimpl 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
sourceimpl Clone for TypeMismatchError
impl Clone for TypeMismatchError
sourcefn clone(&self) -> TypeMismatchError
fn clone(&self) -> TypeMismatchError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TypeMismatchError
impl Debug for TypeMismatchError
sourceimpl Display for TypeMismatchError
impl Display for TypeMismatchError
sourceimpl Error for TypeMismatchError
impl Error for TypeMismatchError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourceimpl From<TypeMismatchError> for Error
impl From<TypeMismatchError> for Error
sourcefn from(t: TypeMismatchError) -> Error
fn from(t: TypeMismatchError) -> Error
Converts to this type from the input type.
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 PartialEq<TypeMismatchError> for TypeMismatchError
impl PartialEq<TypeMismatchError> for TypeMismatchError
sourcefn eq(&self, other: &TypeMismatchError) -> bool
fn eq(&self, other: &TypeMismatchError) -> bool
impl Copy for TypeMismatchError
impl Eq for TypeMismatchError
impl StructuralEq for TypeMismatchError
impl StructuralPartialEq for TypeMismatchError
Auto Trait Implementations
impl RefUnwindSafe for TypeMismatchError
impl Send for TypeMismatchError
impl Sync for TypeMismatchError
impl Unpin for TypeMismatchError
impl UnwindSafe for TypeMismatchError
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