Enum safe_network::client::Error [−][src]
#[non_exhaustive] pub enum Error {}Show 29 variants
AsymmetricDecipherFailure, SymmetricDecipherFailure, ReceivedUnexpectedData, ReceivedUnexpectedEvent, ElderQuery, ElderConnection, NotBootstrapped, InsufficientElderConnections(usize), ReceivingQuery, SendingQuery, QueryReceiverError, NoResponse, NoBlsSectionKey, NoSectionPrefixKnown, UnexpectedMessageOnJoin(String), NotPublicPermissions, NotPrivatePermissions, NoElderListenerEstablished, IncorrectPermissions, UnexpectedQueryResponse(QueryResponse), NotBuiltWithSimulatedPayouts, NetworkDataError(DtError), ErrorMessage { source: ErrorMessage, msg_id: MessageId, }, MessagingProtocol(MessagingError), SelfEncryption(SelfEncryptionError), ConfigError(Error), IoError(Error), QuicP2p(QuicP2pError), Serialisation(Box<ErrorKind>),
Expand description
Client Errors
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Asymmetric Key Decryption Failed.
Symmetric Key Decryption Failed.
Received unexpected data.
Received unexpected event.
Could not query elder.
Could not connect to elder.
Client has not gone trhough qp2p bootstrap process yet
InsufficientElderConnections(usize)
Could not connect to sufficient elder to retrieve reliable responses.
Could not query elder.
Could not send query to elder.
Could not query elder.
Could not query elder.
No BLS section key known.
No section prefix found for session
UnexpectedMessageOnJoin(String)
Unexpected message type receivied while joining.
Permission set provided is not a PublicPermissionSet.
Permission set provided is not a PrivatePermissionSet.
Did not receive an incoming connection listener from qp2p
Incorrect user permissions were returned
UnexpectedQueryResponse(QueryResponse)
Unexpected response received
Not in testnet “simulated payout” mode
NetworkDataError(DtError)
Other types errors
Errors received from the network via sn_messaging
Fields of ErrorMessage
source: ErrorMessage
The source of an error message
msg_id: MessageId
Message ID that was used to send the query
MessagingProtocol(MessagingError)
Errors occurred when serialising or deserialising messages
SelfEncryption(SelfEncryptionError)
self_enryption errors
ConfigError(Error)
Other types errors
IoError(Error)
Io error.
QuicP2p(QuicP2pError)
QuicP2p error.
Bincode error
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more