pub enum NodeErrorKind {
Show 17 variants
Unknown(ErrorCode),
UnknownReqwest,
Building,
Connect,
Timeout,
Decode,
Server,
Rejection,
AtCapacity,
WrongUserPk,
WrongNodePk,
WrongMeasurement,
Provision,
BadAuth,
Proxy,
Command,
NotFound,
}Expand description
All variants of errors that the node can return.
Variants§
Unknown(ErrorCode)
Unknown error
UnknownReqwest
Unknown Reqwest client error
Building
Error building the HTTP request
Connect
Error connecting to a remote HTTP service
Timeout
Request timed out
Decode
Error decoding/deserializing the HTTP response body
Server
General server error
Rejection
Client provided a bad request that the server rejected
AtCapacity
Server is at capacity
WrongUserPk
Wrong user pk
WrongNodePk
Given node pk doesn’t match node pk derived from seed
WrongMeasurement
Request measurement doesn’t match current enclave measurement
Provision
Error occurred during provisioning
BadAuth
Authentication error
Proxy
Could not proxy request to node
Command
Error
NotFound
Resource not found
Trait Implementations§
Source§impl ApiErrorKind for NodeErrorKind
impl ApiErrorKind for NodeErrorKind
Source§impl Clone for NodeErrorKind
impl Clone for NodeErrorKind
Source§fn clone(&self) -> NodeErrorKind
fn clone(&self) -> NodeErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeErrorKind
impl Debug for NodeErrorKind
Source§impl Default for NodeErrorKind
impl Default for NodeErrorKind
Source§impl Display for NodeErrorKind
impl Display for NodeErrorKind
Source§impl From<CommonErrorKind> for NodeErrorKind
impl From<CommonErrorKind> for NodeErrorKind
Source§fn from(common: CommonErrorKind) -> Self
fn from(common: CommonErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<NodeErrorKind> for ErrorCode
impl From<NodeErrorKind> for ErrorCode
Source§fn from(val: NodeErrorKind) -> ErrorCode
fn from(val: NodeErrorKind) -> ErrorCode
Converts to this type from the input type.
Source§impl From<u16> for NodeErrorKind
impl From<u16> for NodeErrorKind
Source§impl Hash for NodeErrorKind
impl Hash for NodeErrorKind
Source§impl PartialEq for NodeErrorKind
impl PartialEq for NodeErrorKind
Source§impl ToHttpStatus for NodeErrorKind
impl ToHttpStatus for NodeErrorKind
fn to_http_status(&self) -> StatusCode
impl Copy for NodeErrorKind
impl Eq for NodeErrorKind
impl StructuralPartialEq for NodeErrorKind
Auto Trait Implementations§
impl Freeze for NodeErrorKind
impl RefUnwindSafe for NodeErrorKind
impl Send for NodeErrorKind
impl Sync for NodeErrorKind
impl Unpin for NodeErrorKind
impl UnsafeUnpin for NodeErrorKind
impl UnwindSafe for NodeErrorKind
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
Mutably borrows from an owned value. Read more