#[non_exhaustive]pub enum InvalidAppKey {
EmptyAppId,
ColonInAppId,
InvalidSignerId(InvalidSignerId),
InvalidFormat(String),
}Expand description
Error type for invalid AppKey.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyAppId
The appId is empty.
ColonInAppId
The appId contains a colon, which is not allowed (used as separator in serialized format).
InvalidSignerId(InvalidSignerId)
The signerId is invalid.
InvalidFormat(String)
The AppKey string format is invalid (missing separator).
Trait Implementations§
Source§impl Clone for InvalidAppKey
impl Clone for InvalidAppKey
Source§fn clone(&self) -> InvalidAppKey
fn clone(&self) -> InvalidAppKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InvalidAppKey
impl Debug for InvalidAppKey
Source§impl Display for InvalidAppKey
impl Display for InvalidAppKey
Source§impl Error for InvalidAppKey
impl Error for InvalidAppKey
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<InvalidSignerId> for InvalidAppKey
impl From<InvalidSignerId> for InvalidAppKey
Source§fn from(source: InvalidSignerId) -> Self
fn from(source: InvalidSignerId) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidAppKey
impl RefUnwindSafe for InvalidAppKey
impl Send for InvalidAppKey
impl Sync for InvalidAppKey
impl Unpin for InvalidAppKey
impl UnsafeUnpin for InvalidAppKey
impl UnwindSafe for InvalidAppKey
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