Enum lucia_apis::Error
source · pub enum Error {
Show 17 variants
Base64(DecodeError),
Bincode(Error),
CapacityError(CapacityError<()>),
Ed25519Dalek(SignatureError),
InvalidLength(InvalidLength),
Lucia(Error),
TryFromIntError(TryFromIntError),
VarError(VarError),
KuCoinUnsuccessfulRequest(String),
SolanaAccountIsNotSplToken,
SolanaAccountIsNotSplTokenMint,
SolanaInexistentOrOutOfBoundsSignatureIndex(usize, Option<usize>),
SolanaMessageCanNotHaveMoreThan240Accounts,
SolanaSignersShouldHaveSignedAllTransactionSignatures(usize, usize),
Generic(Cow<'static, str>),
IncompatibleStatusCode(StatusCode, StatusCode),
NoInnerValue(&'static str),
}
Expand description
All possible errors are grouped here
Variants§
Base64(DecodeError)
See base64::DecodeError.
Bincode(Error)
See bincode::Error.
CapacityError(CapacityError<()>)
Ed25519Dalek(SignatureError)
InvalidLength(InvalidLength)
Lucia(Error)
See lucia::Error.
TryFromIntError(TryFromIntError)
VarError(VarError)
See std::env::VarError.
KuCoinUnsuccessfulRequest(String)
Unsuccessful request explained in the contained string.
SolanaAccountIsNotSplToken
Returned data from counterpart is everything but a spl-token account
SolanaAccountIsNotSplTokenMint
Returned data from counterpart is everything but a spl-token account mint
SolanaInexistentOrOutOfBoundsSignatureIndex(usize, Option<usize>)
Usually means that no signing public key is available in the list of all public keys
SolanaMessageCanNotHaveMoreThan240Accounts
Hard-coded behavior specified by the Solana blockchain
SolanaSignersShouldHaveSignedAllTransactionSignatures(usize, usize)
The number of signers is not equal the number os signed signatures
Generic(Cow<'static, str>)
For third-party dependencies that throws strings errors
IncompatibleStatusCode(StatusCode, StatusCode)
Request was expecting a different HTTP status code.
NoInnerValue(&'static str)
A variant used to transform Option
s into Result
s
Trait Implementations§
source§impl<T> From<CapacityError<T>> for Error
impl<T> From<CapacityError<T>> for Error
source§fn from(_: CapacityError<T>) -> Self
fn from(_: CapacityError<T>) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
source§fn from(from: DecodeError) -> Self
fn from(from: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for Error
impl From<Error> for Error
source§fn from(from: SignatureError) -> Self
fn from(from: SignatureError) -> Self
Converts to this type from the input type.
source§impl From<InvalidLength> for Error
impl From<InvalidLength> for Error
source§fn from(from: InvalidLength) -> Self
fn from(from: InvalidLength) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
source§fn from(from: TryFromIntError) -> Self
fn from(from: TryFromIntError) -> Self
Converts to this type from the input type.