Struct dbus::arg::TypeMismatchError
[−]
[src]
pub struct TypeMismatchError { /* fields omitted */ }
Error struct to indicate a D-Bus argument type mismatch.
Might be returned from iter::read()
.
Methods
impl TypeMismatchError
[src]
fn expected_arg_type(&self) -> ArgType
[src]
The ArgType we were trying to read, but failed
fn found_arg_type(&self) -> ArgType
[src]
The ArgType we should have been trying to read, if we wanted the read to succeed
fn pos(&self) -> u32
[src]
At what argument was the error found?
Returns 0 for first argument, 1 for second argument, etc.
Trait Implementations
impl Clone for TypeMismatchError
[src]
fn clone(&self) -> TypeMismatchError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for TypeMismatchError
[src]
impl Debug for TypeMismatchError
[src]
impl PartialEq for TypeMismatchError
[src]
fn eq(&self, __arg_0: &TypeMismatchError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TypeMismatchError) -> bool
[src]
This method tests for !=
.
impl Eq for TypeMismatchError
[src]
impl Error for TypeMismatchError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more