pub enum DataAnchorClientError {
Show 14 variants
ChainErrors(ChainError),
Indexer(IndexerError),
Proof(ProofError),
SolanaRpc(Error),
InvalidCommitment(ParseCommitmentLevelError),
InvalidIndexerUrl(Error),
InvalidIndexerApiToken(String),
InvalidKeyOrNamespace,
Io(Error),
LedgerDataBlob(LedgerDataBlobError),
InvalidData(String),
UtilsError(DataAnchorUtilsError),
IndexerUrlError(IndexerUrlError),
TokioTaskError(JoinError),
}
Expand description
Errors that can occur when interacting with the Blober client.
Variants§
ChainErrors(ChainError)
Chain interaction errors
Indexer(IndexerError)
Indexer errors
Proof(ProofError)
Proof errors
SolanaRpc(Error)
Failed to query Solana RPC: {0}
InvalidCommitment(ParseCommitmentLevelError)
Invalid commitment: {0}
InvalidIndexerUrl(Error)
Invalid indexer url: {0}
InvalidIndexerApiToken(String)
Invalid indexer API token: {0}
InvalidKeyOrNamespace
Invalid key or namespace for blober
Io(Error)
IO error
LedgerDataBlob(LedgerDataBlobError)
Ledger data blob error: {0}
InvalidData(String)
Invalid data: {0}
UtilsError(DataAnchorUtilsError)
Encoding/Decoding and Compression/Decompression error: {0}
IndexerUrlError(IndexerUrlError)
Indexer URL error: {0}
TokioTaskError(JoinError)
Tokio task error
Trait Implementations§
Source§impl Debug for DataAnchorClientError
impl Debug for DataAnchorClientError
Source§impl Display for DataAnchorClientError
impl Display for DataAnchorClientError
Source§impl Error for DataAnchorClientError
impl Error for DataAnchorClientError
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<ChainError> for DataAnchorClientError
impl From<ChainError> for DataAnchorClientError
Source§fn from(source: ChainError) -> Self
fn from(source: ChainError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DataAnchorClientError
impl From<Error> for DataAnchorClientError
Source§impl From<Error> for DataAnchorClientError
impl From<Error> for DataAnchorClientError
Source§impl From<DataAnchorUtilsError> for DataAnchorClientError
impl From<DataAnchorUtilsError> for DataAnchorClientError
Source§fn from(source: DataAnchorUtilsError) -> Self
fn from(source: DataAnchorUtilsError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DataAnchorClientError
impl From<Error> for DataAnchorClientError
Source§impl From<IndexerError> for DataAnchorClientError
impl From<IndexerError> for DataAnchorClientError
Source§fn from(source: IndexerError) -> Self
fn from(source: IndexerError) -> Self
Converts to this type from the input type.
Source§impl From<JoinError> for DataAnchorClientError
impl From<JoinError> for DataAnchorClientError
Source§impl From<LedgerDataBlobError> for DataAnchorClientError
impl From<LedgerDataBlobError> for DataAnchorClientError
Source§fn from(source: LedgerDataBlobError) -> Self
fn from(source: LedgerDataBlobError) -> Self
Converts to this type from the input type.
Source§impl From<ParseCommitmentLevelError> for DataAnchorClientError
impl From<ParseCommitmentLevelError> for DataAnchorClientError
Source§fn from(source: ParseCommitmentLevelError) -> Self
fn from(source: ParseCommitmentLevelError) -> Self
Converts to this type from the input type.
Source§impl From<ProofError> for DataAnchorClientError
impl From<ProofError> for DataAnchorClientError
Source§fn from(source: ProofError) -> Self
fn from(source: ProofError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DataAnchorClientError
impl !RefUnwindSafe for DataAnchorClientError
impl Send for DataAnchorClientError
impl Sync for DataAnchorClientError
impl Unpin for DataAnchorClientError
impl !UnwindSafe for DataAnchorClientError
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