Enum rings_core::error::Error
source · #[non_exhaustive]pub enum Error {
Show 98 variants
EdDSAPublicKeyBadFormat,
ECDSAPublicKeyBadFormat,
PublicKeyBadFormat,
InvalidTransport,
InvalidPublicKey,
VNodeKindNotEqual,
VNodeDidNotEqual,
VNodeNotOverwritable,
VNodeNotAppendable,
VNodeNotJoinable,
Encode,
Decode,
Utf8Encoding(FromUtf8Error),
ServiceIOError(Error),
BadHexInCache(FromHexError),
BadCHexInCache,
URLParse(ParseError),
BadArrayInCache(TryFromSliceError),
SerializeToString,
SerializeError,
Serialize(Error),
Deserialize(Error),
BincodeSerialize(Error),
BincodeDeserialize(Error),
UnknownAccount,
VerifySignatureFailed,
GzipEncode,
GzipDecode,
PromiseStateFailed,
PromiseStateTimeout,
IceServerSchemeNotSupport(String),
IceServerURLMissHost,
Libsecp256k1SecretKeyParse(String),
Libsecp256k1SignatureParseStandard(String),
Libsecp256k1RecoverIdParse(String),
Libsecp256k1Recover,
MessageHandlerMissNextNode,
AlreadyConnected,
MessageHandlerMissTransportAlreadyConnected,
MessageHandlerMissTransportConnectedNode,
ChannelSendMessageFailed,
ChannelRecvMessageFailed(String),
PeerRingInvalidAction,
FailedToReadSuccessors,
FailedToWriteSuccessors,
PeerRingInvalidVNode,
PeerRingUnexpectedAction(PeerRingAction),
PeerRingFindSuccessor(String),
PeerRingNotFindClosestNode,
PeerRingUnlockFailed,
SwarmMissDidInTable(Did),
FailedOnGatherLocalCandidate(String),
NodeBehaviourBad(Did),
SwarmMissTransport(Did),
SwarmLoadMessageRecvFailed(String),
SwarmDefaultTransportNotConnected,
SwarmPendingTransTryLockFailed,
SwarmPendingTransNotFound,
SwarmToClosePrevTransport(String),
SessionTryLockFailed,
InvalidPeerType,
InvalidVNodeType,
RTCPeerConnectionCreateFailed(Error),
RTCPeerConnectionNotEstablish,
RTCPeerConnectionCreateOfferFailed(Error),
RTCPeerConnectionCreateAnswerFailed(Error),
RTCDataChannelMessageIncomplete(usize, usize),
RTCDataChannelSendTextFailed(Error),
RTCDataChannelNotReady,
RTCDataChannelStateNotOpen,
RTCPeerConnectionAddIceCandidateError(Error),
RTCPeerConnectionSetLocalDescFailed(Error),
RTCPeerConnectionSetRemoteDescFailed(Error),
RTCPeerConnectionCloseFailed(Error),
RTCSdpTypeNotMatch,
TransportNotFound,
InvalidTransportUuid,
UnexpectedEncryptedData,
DecryptionError,
InvalidNextHop,
InvalidRelayPath,
InfiniteRelayPath,
InvalidRelayDestination,
CannotInferNextHop,
NoNextHop,
ReportNeedSend,
ResetDestinationNeedSend,
InvalidCapacity,
SledError(Error),
EntryNotFound,
IOError(Error),
DHTSyncLockError,
SwarmBuildFailed(String),
InvalidMessage(String),
MessageEncryptionFailed(SecpError),
MessageDecryptionFailed(SecpError),
MessageTooLarge,
SessionExpired,
}
Expand description
Errors collections in ring-core.
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.
EdDSAPublicKeyBadFormat
ECDSAPublicKeyBadFormat
PublicKeyBadFormat
InvalidTransport
InvalidPublicKey
VNodeKindNotEqual
VNodeDidNotEqual
VNodeNotOverwritable
VNodeNotAppendable
VNodeNotJoinable
Encode
Decode
Utf8Encoding(FromUtf8Error)
ServiceIOError(Error)
BadHexInCache(FromHexError)
BadCHexInCache
URLParse(ParseError)
BadArrayInCache(TryFromSliceError)
SerializeToString
SerializeError
Serialize(Error)
Deserialize(Error)
BincodeSerialize(Error)
BincodeDeserialize(Error)
UnknownAccount
VerifySignatureFailed
GzipEncode
GzipDecode
PromiseStateFailed
PromiseStateTimeout
IceServerSchemeNotSupport(String)
IceServerURLMissHost
Libsecp256k1SecretKeyParse(String)
Libsecp256k1SignatureParseStandard(String)
Libsecp256k1RecoverIdParse(String)
Libsecp256k1Recover
MessageHandlerMissNextNode
AlreadyConnected
MessageHandlerMissTransportAlreadyConnected
MessageHandlerMissTransportConnectedNode
ChannelSendMessageFailed
ChannelRecvMessageFailed(String)
PeerRingInvalidAction
FailedToReadSuccessors
FailedToWriteSuccessors
PeerRingInvalidVNode
PeerRingUnexpectedAction(PeerRingAction)
PeerRingFindSuccessor(String)
PeerRingNotFindClosestNode
PeerRingUnlockFailed
SwarmMissDidInTable(Did)
FailedOnGatherLocalCandidate(String)
NodeBehaviourBad(Did)
SwarmMissTransport(Did)
SwarmLoadMessageRecvFailed(String)
SwarmDefaultTransportNotConnected
SwarmPendingTransTryLockFailed
SwarmPendingTransNotFound
SwarmToClosePrevTransport(String)
SessionTryLockFailed
InvalidPeerType
InvalidVNodeType
RTCPeerConnectionCreateFailed(Error)
RTCPeerConnectionNotEstablish
RTCPeerConnectionCreateOfferFailed(Error)
RTCPeerConnectionCreateAnswerFailed(Error)
RTCDataChannelMessageIncomplete(usize, usize)
RTCDataChannelSendTextFailed(Error)
RTCDataChannelNotReady
RTCDataChannelStateNotOpen
RTCPeerConnectionAddIceCandidateError(Error)
RTCPeerConnectionSetLocalDescFailed(Error)
RTCPeerConnectionSetRemoteDescFailed(Error)
RTCPeerConnectionCloseFailed(Error)
RTCSdpTypeNotMatch
TransportNotFound
InvalidTransportUuid
UnexpectedEncryptedData
DecryptionError
InvalidNextHop
InvalidRelayPath
InfiniteRelayPath
InvalidRelayDestination
CannotInferNextHop
NoNextHop
ReportNeedSend
ResetDestinationNeedSend
InvalidCapacity
SledError(Error)
EntryNotFound
IOError(Error)
DHTSyncLockError
SwarmBuildFailed(String)
InvalidMessage(String)
MessageEncryptionFailed(SecpError)
MessageDecryptionFailed(SecpError)
MessageTooLarge
SessionExpired
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()
source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.
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<'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