pub enum Error {
Show 18 variants
InvalidConfig {
attribute: String,
reason: String,
},
MalformedConfig(String),
Attestation(Error),
MalformedAssignment,
ReassignRequired,
Channel(ChannelError),
MalformedRequest,
ReleaseUnavailable,
TooManyResponseSlots,
ReleaseNotAttested,
MalformedResult,
InvalidSigningKey,
StatementInvalid,
WebSocket(Error),
Timeout,
ConnectionClosed,
MalformedMessage,
ApiFrame {
code: String,
allow_retry: bool,
},
}Expand description
Failures while configuring or calling the host.
Variants§
InvalidConfig
A configuration field was not usable.
MalformedConfig(String)
The configuration JSON could not be parsed.
Attestation(Error)
An attestation document did not verify.
MalformedAssignment
The assignment document or public key was not valid base64.
ReassignRequired
The assignment is stale: re-assign, re-seal, and retry once.
Channel(ChannelError)
Channel attestation, key binding, sealing or opening failed.
MalformedRequest
The request violated a WIP-201 bound or its AAT did not verify.
The attested release does not define the request’s pipeline or match_strictness, or the
request’s pipeline_inputs do not fit the pipeline.
TooManyResponseSlots
The request’s pipeline lists more response slots than the configured maximum, so its response timing could reveal too much (WIP-201 §4.6 step 3).
ReleaseNotAttested
The assignment’s attestation does not carry the release_hash of its release manifest.
MalformedResult
The sealed plaintext was not a match result.
InvalidSigningKey
The attested signing public key was not a valid BabyJubJub point.
StatementInvalid
The statement did not verify under the attested signing key.
WebSocket(Error)
The WebSocket handshake or an I/O operation on it failed.
Timeout
An operation did not finish within its configured deadline.
ConnectionClosed
The host closed the WebSocket before the exchange completed.
MalformedMessage
A frame was not the message the protocol expects at that point.
ApiFrame
The host returned an error envelope over the WebSocket.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Errorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
*const HeaderName is !null: Freeze,
PhantomData<HeaderName>: Freeze,
*const Message is !null: Freeze,
PhantomData<Message>: Freeze,
*const Response<Option<Vec<u8>>> is !null: Freeze,
PhantomData<Response<Option<Vec<u8>>>>: Freeze,
impl Move for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Errorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
*const HeaderName is !null: UnsafeUnpin,
PhantomData<HeaderName>: UnsafeUnpin,
*const Message is !null: UnsafeUnpin,
PhantomData<Message>: UnsafeUnpin,
*const Response<Option<Vec<u8>>> is !null: UnsafeUnpin,
PhantomData<Response<Option<Vec<u8>>>>: UnsafeUnpin,
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> 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 more