pub struct RoleMismatch {
pub expected: Role,
pub found: Role,
}Expand description
A role type was asked for a Role it does not stand for.
Fields§
§expected: RoleThe role the type stands for.
found: RoleThe role that was found.
Trait Implementations§
Source§impl Clone for RoleMismatch
impl Clone for RoleMismatch
impl Copy for RoleMismatch
Source§impl Debug for RoleMismatch
impl Debug for RoleMismatch
Source§impl Display for RoleMismatch
impl Display for RoleMismatch
impl Eq for RoleMismatch
Source§impl Error for RoleMismatch
impl Error for RoleMismatch
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RoleMismatch
impl PartialEq for RoleMismatch
impl StructuralPartialEq for RoleMismatch
Auto Trait Implementations§
impl Forget for RoleMismatch
impl Freeze for RoleMismatch
impl Move for RoleMismatch
impl RefUnwindSafe for RoleMismatch
impl Send for RoleMismatch
impl Sync for RoleMismatch
impl Unpin for RoleMismatch
impl UnsafeUnpin for RoleMismatch
impl UnwindSafe for RoleMismatch
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