pub enum GxtError {
}Expand description
Errors that can occur while encoding, decoding, compressing, or verifying GXT tokens.
Variants§
BadPrefix
The message must start with the prefix “gxt:”
Decode(Error)
Base58 decoding failed
Compression(Error)
Compression or decompression failed
Encryption(String)
Encryption or decryption failed
Cbor(Error)
CBOR serialization failed
Json(Error)
JSON serialization failed
TooLarge
The message is too large
BadSig
The signature is wrong
BadId
The id is wrong
BadHex(FromHexError)
A hex value contains invalid characters
InvalidHexSize
A hex has the wrong size
AccessDenied
The specified key can not decrypt this message
Invalid
The structure message is invalid
UnknownPayloadKind
Received an unknown payload kind
Trait Implementations§
Source§impl Error for GxtError
impl Error for GxtError
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<FromHexError> for GxtError
impl From<FromHexError> for GxtError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GxtError
impl !RefUnwindSafe for GxtError
impl Send for GxtError
impl Sync for GxtError
impl Unpin for GxtError
impl !UnwindSafe for GxtError
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