Enum rings_core::err::Error
source · #[non_exhaustive]
pub enum Error {
Show 89 variants
EdDSAPublicKeyNotFound,
EdDSAPublicKeyBadFormat,
ECDSAPublicKeyBadFormat,
PublicKeyBadFormat,
InvalidTransport,
InvalidPublicKey,
DidNotEqual,
Encode,
Decode,
Utf8Encoding(FromUtf8Error),
ServiceIOError(Error),
BadHexInCache(FromHexError),
BadCHexInCache,
URLParse(ParseError),
BadArrayInCache(TryFromSliceError),
SerializeToString,
SerializeError,
Serialize(Error),
Deserialize(Error),
BincodeSerialize(Error),
BincodeDeserialize(Error),
VerifySignatureFailed,
GzipEncode,
GzipDecode,
PromiseStateFailed,
IceServerSchemeNotSupport(String),
IceServerURLMissHost,
Libsecp256k1SecretKeyParse(String),
Libsecp256k1SignatureParseStandard(String),
Libsecp256k1RecoverIdParse(String),
Libsecp256k1Recover,
MessageHandlerUnsupportedMessageType(String),
MessageHandlerMissNextNode,
MessageHandlerMissTransportAlreadyConnected,
MessageHandlerMissTransportConnectedNode,
ChannelSendMessageFailed,
ChannelRecvMessageFailed,
PeerRingInvalidAction,
PeerRingInvalidVNode,
PeerRingUnexpectedAction(PeerRingAction),
PeerRingFindSuccessor(String),
PeerRingNotFindClosestNode,
PeerRingUnlockFailed,
SwarmMissDidInTable(Did),
FailedOnGatherLocalCandidate,
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,
}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.
EdDSAPublicKeyNotFound
EdDSAPublicKeyBadFormat
ECDSAPublicKeyBadFormat
PublicKeyBadFormat
InvalidTransport
InvalidPublicKey
DidNotEqual
Encode
Decode
Utf8Encoding(FromUtf8Error)
ServiceIOError(Error)
BadHexInCache(FromHexError)
BadCHexInCache
URLParse(ParseError)
BadArrayInCache(TryFromSliceError)
SerializeToString
SerializeError
Serialize(Error)
Deserialize(Error)
BincodeSerialize(Error)
BincodeDeserialize(Error)
VerifySignatureFailed
GzipEncode
GzipDecode
PromiseStateFailed
IceServerSchemeNotSupport(String)
IceServerURLMissHost
Libsecp256k1SecretKeyParse(String)
Libsecp256k1SignatureParseStandard(String)
Libsecp256k1RecoverIdParse(String)
Libsecp256k1Recover
MessageHandlerUnsupportedMessageType(String)
MessageHandlerMissNextNode
MessageHandlerMissTransportAlreadyConnected
MessageHandlerMissTransportConnectedNode
ChannelSendMessageFailed
ChannelRecvMessageFailed
PeerRingInvalidAction
PeerRingInvalidVNode
PeerRingUnexpectedAction(PeerRingAction)
PeerRingFindSuccessor(String)
PeerRingNotFindClosestNode
PeerRingUnlockFailed
SwarmMissDidInTable(Did)
FailedOnGatherLocalCandidate
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
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.