pub enum SnsError {
Show 26 variants
InvalidDomain,
SolanaClient(ClientError),
SolanaProgramError(ProgramError),
InvalidReverse,
ED25519(Error),
BorshError(Error),
UnsupportedMint,
SerializationError,
InvalidPubkey,
Utf8(FromUtf8Error),
Bech32(Error),
InvalidRecordData,
Hex(FromHexError),
UnrecognizedRecord,
Punycode,
InvalidEvmAddress,
InvalidInjectiveAddress,
InvalidIpv4,
InvalidIpv6,
SolRecordNotSupported,
NftRecordDoesNotExist,
Casting,
TryFromSlice(TryFromSliceError),
RecordsError(SnsRecordsError),
StaleRecord,
UnverifiedRecord,
}Variants§
InvalidDomain
SolanaClient(ClientError)
SolanaProgramError(ProgramError)
InvalidReverse
ED25519(Error)
BorshError(Error)
UnsupportedMint
SerializationError
InvalidPubkey
Utf8(FromUtf8Error)
Bech32(Error)
InvalidRecordData
Hex(FromHexError)
UnrecognizedRecord
Punycode
InvalidEvmAddress
InvalidInjectiveAddress
InvalidIpv4
InvalidIpv6
SolRecordNotSupported
NftRecordDoesNotExist
Casting
TryFromSlice(TryFromSliceError)
RecordsError(SnsRecordsError)
StaleRecord
UnverifiedRecord
Trait Implementations§
Source§impl Error for SnsError
impl Error for SnsError
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<Error> for SnsError
impl From<Error> for SnsError
Source§fn from(e: ClientError) -> Self
fn from(e: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<FromHexError> for SnsError
impl From<FromHexError> for SnsError
Source§fn from(e: FromHexError) -> Self
fn from(e: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for SnsError
impl From<FromUtf8Error> for SnsError
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<PodCastError> for SnsError
impl From<PodCastError> for SnsError
Source§fn from(_: PodCastError) -> Self
fn from(_: PodCastError) -> Self
Converts to this type from the input type.
Source§impl From<ProgramError> for SnsError
impl From<ProgramError> for SnsError
Source§fn from(e: ProgramError) -> Self
fn from(e: ProgramError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for SnsError
impl From<TryFromSliceError> for SnsError
Source§fn from(e: TryFromSliceError) -> Self
fn from(e: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SnsError
impl !RefUnwindSafe for SnsError
impl Send for SnsError
impl Sync for SnsError
impl Unpin for SnsError
impl UnsafeUnpin for SnsError
impl !UnwindSafe for SnsError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more