pub enum ContentError {
RuntimeNotInitialized,
Substrate(String),
Transaction(String),
UnknownAccount(String),
Ipfs(String),
Image(String),
Indexer(String),
Content(String),
InvalidArgument(String),
Cid(String),
Account(String),
Other(String),
}Expand description
Errors produced by the Choreographr Coordination Platform tools.
Variants§
RuntimeNotInitialized
The sidecar tokio runtime was never initialized (or failed to start).
Substrate(String)
Substrate/subxt transport or interop failure.
Transaction(String)
The transaction was rejected or could not be submitted.
UnknownAccount(String)
The account used to sign is missing from the keystore credential store.
Ipfs(String)
An IPFS operation failed.
Image(String)
An image could not be read, decoded, or JPEG-encoded.
Indexer(String)
The indexer WebSocket API request failed.
Content(String)
A content payload could not be encoded/decoded (protobuf) or a field was missing/ill-formed.
InvalidArgument(String)
An item ID could not be derived/decoded, or an argument was invalid.
Cid(String)
A CID or sha2-256 digest could not be converted/parsed.
Account(String)
The keystore/account operation failed.
Other(String)
Any other failure (bounded, informational).
Implementations§
Trait Implementations§
Source§impl Debug for ContentError
impl Debug for ContentError
Source§impl Display for ContentError
impl Display for ContentError
Source§impl Error for ContentError
impl Error for ContentError
1.30.0 · 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
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ContentError
impl RefUnwindSafe for ContentError
impl Send for ContentError
impl Sync for ContentError
impl Unpin for ContentError
impl UnsafeUnpin for ContentError
impl UnwindSafe for ContentError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreimpl<T> JsonSchemaMaybe for T
impl<T> MaybeDebug for Twhere
T: Debug,
impl<T> MaybeSend for Twhere
T: Send,
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from.