pub enum ClientError {
Show 20 variants
Fetch(FetchError),
Package(PackageError),
Content(ContentError),
Proof(ProofError),
Monitor(MonitorError),
Ledger(LedgerError),
Communication(Error),
UnexpectedResponse {
status: StatusCode,
message: String,
},
IncorrectConsistencyProof {
root: AnyHash,
found: AnyHash,
},
Hash(HashError),
ConsistencyProof(ConsistencyProofError),
InclusionProof(InclusionProofError),
RecordNotPublished(RecordId),
NoSourceForContent(AnyHash),
AllSourcesFailed(AnyHash),
InvalidHttpMethod(String),
InvalidHttpHeader(String, String),
LogNotFoundWithHint(LogId, HeaderValue),
InvalidWellKnownConfig(String),
Other(Error),
}
Expand description
Represents an error that occurred while communicating with the registry.
Variants§
Fetch(FetchError)
An error was returned from the fetch API.
Package(PackageError)
An error was returned from the package API.
Content(ContentError)
An error was returned from the content API.
Proof(ProofError)
An error was returned from the proof API.
Monitor(MonitorError)
An error was returned from the monitor API.
Ledger(LedgerError)
An error was returned from the ledger API.
Communication(Error)
An error occurred while communicating with the registry.
UnexpectedResponse
An unexpected response was received from the server.
IncorrectConsistencyProof
The provided root for a consistency proof was incorrect.
Hash(HashError)
A hash returned from the server was incorrect.
ConsistencyProof(ConsistencyProofError)
The client failed a consistency proof.
InclusionProof(InclusionProofError)
The client failed an inclusion proof.
RecordNotPublished(RecordId)
The record was not published.
NoSourceForContent(AnyHash)
Could not find a source for the given content digest.
AllSourcesFailed(AnyHash)
All sources for the given content digest returned an error response.
InvalidHttpMethod(String)
Invalid upload HTTP method.
InvalidHttpHeader(String, String)
Invalid upload HTTP method.
LogNotFoundWithHint(LogId, HeaderValue)
The provided log was not found with hint header.
InvalidWellKnownConfig(String)
Invalid well-known config.
Other(Error)
An other error occurred during the requested operation.
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Error for ClientError
impl Error for ClientError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ClientError> for ClientError
impl From<ClientError> for ClientError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Source§impl From<ConsistencyProofError> for ClientError
impl From<ConsistencyProofError> for ClientError
Source§fn from(source: ConsistencyProofError) -> Self
fn from(source: ConsistencyProofError) -> Self
Source§impl From<ContentError> for ClientError
impl From<ContentError> for ClientError
Source§fn from(source: ContentError) -> Self
fn from(source: ContentError) -> Self
Source§impl From<Error> for ClientError
impl From<Error> for ClientError
Source§impl From<Error> for ClientError
impl From<Error> for ClientError
Source§impl From<FetchError> for ClientError
impl From<FetchError> for ClientError
Source§fn from(source: FetchError) -> Self
fn from(source: FetchError) -> Self
Source§impl From<HashError> for ClientError
impl From<HashError> for ClientError
Source§impl From<InclusionProofError> for ClientError
impl From<InclusionProofError> for ClientError
Source§fn from(source: InclusionProofError) -> Self
fn from(source: InclusionProofError) -> Self
Source§impl From<LedgerError> for ClientError
impl From<LedgerError> for ClientError
Source§fn from(source: LedgerError) -> Self
fn from(source: LedgerError) -> Self
Source§impl From<MonitorError> for ClientError
impl From<MonitorError> for ClientError
Source§fn from(source: MonitorError) -> Self
fn from(source: MonitorError) -> Self
Source§impl From<PackageError> for ClientError
impl From<PackageError> for ClientError
Source§fn from(source: PackageError) -> Self
fn from(source: PackageError) -> Self
Source§impl From<ProofError> for ClientError
impl From<ProofError> for ClientError
Source§fn from(source: ProofError) -> Self
fn from(source: ProofError) -> Self
Auto Trait Implementations§
impl !Freeze for ClientError
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl !UnwindSafe for ClientError
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
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>
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>
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.