pub enum MintError {
DuplicateCatchAll(usize),
ManifestTooLarge {
size: usize,
cap: usize,
},
Token(TokenError),
}Expand description
Why a mint was rejected.
Variants§
DuplicateCatchAll(usize)
More than one catch-all variant — selection order would be ambiguous to authors even though declaration order breaks the tie.
ManifestTooLarge
The serialized manifest exceeds the size cap; move bodies to media.
Token(TokenError)
Token generation failed (entropy or length configuration).
Trait Implementations§
Source§impl Error for MintError
impl Error for MintError
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 From<TokenError> for MintError
impl From<TokenError> for MintError
Source§fn from(source: TokenError) -> Self
fn from(source: TokenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MintError
impl RefUnwindSafe for MintError
impl Send for MintError
impl Sync for MintError
impl Unpin for MintError
impl UnsafeUnpin for MintError
impl UnwindSafe for MintError
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