Enum rings_node::error::Error
source · #[non_exhaustive]#[repr(u32)]pub enum Error {
Show 44 variants
RemoteRpcError(String),
UnknownRpcError,
ConnectionNotFound,
NewConnectionError(Error),
CloseConnectionError(Error),
InvalidConnectionId,
CreateOffer(Error),
AnswerOffer(Error),
AcceptAnswer(Error),
DecodeError,
EncodeError,
WasmCompileError(String),
WasmBackendMessageRwLockError,
WasmInstantiationError,
WasmExportError,
WasmRuntimeError(String),
WasmGlobalMemoryLockError,
WasmFailedToLoadFile,
InvalidDid,
InvalidMethod,
InternalError,
NoPermission,
ConnectError(Error),
SendMessage(Error),
VNodeError(Error),
ServiceRegisterError(Error),
JsError(String),
InvalidMessage,
HttpRequestError(String),
InvalidData,
InvalidService,
InvalidAddress,
InvalidAuthData,
InvalidHeaders,
Storage(Error),
Swarm(Error),
CreateFileError(String),
OpenFileError(String),
Lock,
SerdeJsonError(Error),
SerdeYamlError(Error),
VerifyError(String),
CoreError(Error),
ExternalError(String),
}
Expand description
Errors enum mapping global custom errors. The error type can be expressed in decimal, where the high decs represent the error category and the low decs represent the error type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RemoteRpcError(String)
UnknownRpcError
ConnectionNotFound
NewConnectionError(Error)
CloseConnectionError(Error)
InvalidConnectionId
CreateOffer(Error)
AnswerOffer(Error)
AcceptAnswer(Error)
DecodeError
EncodeError
WasmCompileError(String)
WasmBackendMessageRwLockError
WasmInstantiationError
WasmExportError
WasmRuntimeError(String)
WasmGlobalMemoryLockError
WasmFailedToLoadFile
InvalidDid
InvalidMethod
InternalError
NoPermission
ConnectError(Error)
SendMessage(Error)
VNodeError(Error)
ServiceRegisterError(Error)
JsError(String)
InvalidMessage
HttpRequestError(String)
InvalidData
InvalidService
InvalidAddress
InvalidAuthData
InvalidHeaders
Storage(Error)
Swarm(Error)
CreateFileError(String)
OpenFileError(String)
Lock
SerdeJsonError(Error)
SerdeYamlError(Error)
VerifyError(String)
CoreError(Error)
ExternalError(String)
Implementations§
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)>
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
§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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Upcastable for Twhere
T: Any + Send + Sync + 'static,
impl<T> Upcastable for Twhere T: Any + Send + Sync + 'static,
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref