#[non_exhaustive]pub enum Error {
Show 122 variants
EccSerializeFailed,
EccDeserializeFailed,
CurveHasherInitFailed,
CurveHasherFailed,
EdDSAPublicKeyBadFormat,
ECDSAPublicKeyBadFormat,
Secp256k1PointLiftFailed,
E2eStreamIdMismatch {
expected: Uuid,
actual: Uuid,
},
E2eFrameSequenceMismatch {
expected: u64,
actual: u64,
},
E2eFrameReorderWindowExceeded {
next_sequence: u64,
actual: u64,
window: u64,
},
E2eFrameSequenceOverflow,
E2eFrameAfterFinal,
E2eMissingFinalFrame,
E2ePublicKeyDidMismatch {
expected: Did,
actual: Did,
},
ECDSAError(Error),
PublicKeyBadFormat,
BlsAffineDecodeFailed,
PrivateKeyBadFormat,
InvalidTransport,
InvalidPublicKey,
EntryKindNotEqual,
EntryDidNotEqual,
EntryNotOverwritable,
EntryNotAppendable,
EntryNotJoinable,
EntryNotTombstonable,
EntryDotIndexOutOfBounds {
index: usize,
},
InvalidAffineScalar,
StorageRedundancyMismatch {
configured: u16,
requested: u16,
},
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,
InvalidRecoverId(u8),
GzipEncode,
GzipDecode,
PromiseStateFailed,
PromiseStateTimeout,
IceServerSchemeNotSupport(String),
IceServerURLMissHost,
Libsecp256k1Error(Error),
Libsecp256k1SignatureParseStandard(String),
Libsecp256k1RecoverIdParse(String),
Libsecp256k1Recover,
MessageHandlerMissNextNode,
AlreadyConnected,
ShouldNotConnectSelf,
ChannelSendMessageFailed,
ChannelRecvMessageFailed(String),
PeerRingInvalidAction,
FailedToReadSuccessors,
SuccessorIndexOutOfBounds {
index: usize,
len: usize,
},
FailedToWriteSuccessors,
PeerRingInvalidEntry,
PeerRingUnexpectedAction(Box<PeerRingAction>),
PeerRingFindSuccessor(String),
PeerRingNotFindClosestNode,
PeerRingUnlockFailed,
SwarmMissDidInTable(Did),
FailedOnGatherLocalCandidate(String),
NodeBehaviourBad(Did),
SwarmMissTransport(Did),
SwarmLoadMessageRecvFailed(String),
SwarmDefaultTransportNotConnected,
SwarmPendingTransTryLockFailed,
SwarmPendingTransNotFound,
SwarmToClosePrevTransport(String),
SessionTryLockFailed,
InvalidPeerType,
InvalidEntryKind,
RTCPeerConnectionCreateFailed(Error),
RTCPeerConnectionNotEstablish,
RTCPeerConnectionCreateOfferFailed(Error),
RTCPeerConnectionCreateAnswerFailed(Error),
RTCDataChannelMessageIncomplete(usize, usize),
RTCDataChannelSendTextFailed(Error),
RTCDataChannelNotReady,
RTCDataChannelStateNotOpen,
RTCPeerConnectionAddIceCandidateError(Error),
RTCPeerConnectionSetLocalDescFailed(Error),
RTCPeerConnectionSetRemoteDescFailed(Error),
RTCPeerConnectionCloseFailed(Error),
RTCSdpTypeNotMatch,
ConnectionNotFound,
InvalidTransportUuid,
UnexpectedEncryptedData,
DecryptionError,
InvalidNextHop,
InvalidRelayPath,
InfiniteRelayPath,
InvalidRelayDestination,
CannotInferNextHop,
NoNextHop,
ReportNeedSend,
ResetDestinationNeedSend,
InvalidCapacity,
SledError(Error),
EntryNotFound,
IOError(Error),
DHTSyncLockError,
CallbackSyncLockError,
SwarmBuildFailed(String),
InvalidMessage(String),
MessageEncryptionFailed(String),
MessageDecryptionFailed(String),
MessageTooLarge(usize),
PeerMaxMessageSizeTooSmall(usize),
SessionExpired,
Transport(Error),
JsError(String),
}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.
EccSerializeFailed
EccDeserializeFailed
CurveHasherInitFailed
CurveHasherFailed
EdDSAPublicKeyBadFormat
ECDSAPublicKeyBadFormat
Secp256k1PointLiftFailed
E2eStreamIdMismatch
Fields
E2eFrameSequenceMismatch
Fields
E2eFrameReorderWindowExceeded
Fields
E2eFrameSequenceOverflow
E2eFrameAfterFinal
E2eMissingFinalFrame
E2ePublicKeyDidMismatch
Fields
ECDSAError(Error)
PublicKeyBadFormat
BlsAffineDecodeFailed
PrivateKeyBadFormat
InvalidTransport
InvalidPublicKey
EntryKindNotEqual
EntryDidNotEqual
EntryNotOverwritable
EntryNotAppendable
EntryNotJoinable
EntryNotTombstonable
EntryDotIndexOutOfBounds
InvalidAffineScalar
StorageRedundancyMismatch
Fields
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
InvalidRecoverId(u8)
GzipEncode
GzipDecode
PromiseStateFailed
PromiseStateTimeout
IceServerSchemeNotSupport(String)
IceServerURLMissHost
Libsecp256k1Error(Error)
Libsecp256k1SignatureParseStandard(String)
Libsecp256k1RecoverIdParse(String)
Libsecp256k1Recover
MessageHandlerMissNextNode
AlreadyConnected
ShouldNotConnectSelf
ChannelSendMessageFailed
ChannelRecvMessageFailed(String)
PeerRingInvalidAction
FailedToReadSuccessors
SuccessorIndexOutOfBounds
FailedToWriteSuccessors
PeerRingInvalidEntry
PeerRingUnexpectedAction(Box<PeerRingAction>)
PeerRingFindSuccessor(String)
PeerRingNotFindClosestNode
PeerRingUnlockFailed
SwarmMissDidInTable(Did)
FailedOnGatherLocalCandidate(String)
NodeBehaviourBad(Did)
SwarmMissTransport(Did)
SwarmLoadMessageRecvFailed(String)
SwarmDefaultTransportNotConnected
SwarmPendingTransTryLockFailed
SwarmPendingTransNotFound
SwarmToClosePrevTransport(String)
SessionTryLockFailed
InvalidPeerType
InvalidEntryKind
RTCPeerConnectionCreateFailed(Error)
RTCPeerConnectionNotEstablish
RTCPeerConnectionCreateOfferFailed(Error)
RTCPeerConnectionCreateAnswerFailed(Error)
RTCDataChannelMessageIncomplete(usize, usize)
RTCDataChannelSendTextFailed(Error)
RTCDataChannelNotReady
RTCDataChannelStateNotOpen
RTCPeerConnectionAddIceCandidateError(Error)
RTCPeerConnectionSetLocalDescFailed(Error)
RTCPeerConnectionSetRemoteDescFailed(Error)
RTCPeerConnectionCloseFailed(Error)
RTCSdpTypeNotMatch
ConnectionNotFound
InvalidTransportUuid
UnexpectedEncryptedData
DecryptionError
InvalidNextHop
InvalidRelayPath
InfiniteRelayPath
InvalidRelayDestination
CannotInferNextHop
NoNextHop
ReportNeedSend
ResetDestinationNeedSend
InvalidCapacity
SledError(Error)
EntryNotFound
IOError(Error)
DHTSyncLockError
CallbackSyncLockError
SwarmBuildFailed(String)
InvalidMessage(String)
MessageEncryptionFailed(String)
MessageDecryptionFailed(String)
MessageTooLarge(usize)
PeerMaxMessageSizeTooSmall(usize)
SessionExpired
Transport(Error)
JsError(String)
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)>
Returns 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 !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§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.
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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<T> ErasedDestructor for Twhere
T: 'static,
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>
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>
Converts
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>
Converts
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.