Enum primitives::validator::messages::MessageError
source · pub enum MessageError<T: Type> {
Balances(Error),
Type {
expected: PhantomData<T>,
actual: String,
},
}
Variants
Balances(Error)
Type
Implementations
sourceimpl<T: Type> MessageError<T>
impl<T: Type> MessageError<T>
pub fn for_actual<A: Type>(_actual: &A) -> Self
Trait Implementations
sourceimpl<T: Debug + Type> Debug for MessageError<T>
impl<T: Debug + Type> Debug for MessageError<T>
sourceimpl<T: Type> Display for MessageError<T>
impl<T: Type> Display for MessageError<T>
sourceimpl<T: Type> Error for MessageError<T>where
Self: Debug + Display,
impl<T: Type> Error for MessageError<T>where
Self: Debug + Display,
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl<T> RefUnwindSafe for MessageError<T>where
T: RefUnwindSafe,
impl<T> Send for MessageError<T>where
T: Send,
impl<T> Sync for MessageError<T>where
T: Sync,
impl<T> Unpin for MessageError<T>where
T: Unpin,
impl<T> UnwindSafe for MessageError<T>where
T: UnwindSafe,
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