Enum safe_network::client::Error [−][src]
#[non_exhaustive]
pub enum Error {
Show 36 variants
Aggregation(String),
AsymmetricDecipherFailure,
SymmetricDecipherFailure,
ReceivedUnexpectedData,
ReceivedUnexpectedEvent,
ElderQuery,
ElderConnection,
NotBootstrapped,
InsufficientElderConnections(usize),
ReceivingQuery,
SendingQuery,
QueryReceiverError,
NoResponse,
NoBlsSectionKey,
NoSectionPrefixKnown,
UnexpectedMessageOnJoin(String),
NotPublicPermissions,
NotPrivatePermissions,
NoElderListenerEstablished,
IncorrectPermissions,
UnknownOperationId,
UnexpectedQueryResponse(QueryResponse),
NotBuiltWithSimulatedPayouts,
NetworkDataError(DtError),
ErrorMessage {
source: ErrorMessage,
op_id: OperationId,
},
MessagingProtocol(MessagingError),
SelfEncryption(Error),
ConfigError(Error),
IoError(Error),
EndpointSetup(ClientEndpointError),
QuicP2p(SendError),
Serialisation(Box<ErrorKind>),
Sled(Error),
Database(Error),
Generic(String),
BootstrapToPeerFailed(SocketAddr),
}Expand description
Client Errors
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Aggregation(String)Signature Aggregation Error
Tuple Fields of Aggregation
0: StringAsymmetric 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 through qp2p bootstrap process yet
InsufficientElderConnections(usize)Could not connect to sufficient elder to retrieve reliable responses.
Tuple Fields of InsufficientElderConnections
0: usizeCould 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 received while joining.
Tuple Fields of UnexpectedMessageOnJoin
0: StringPermission 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
No operation Id could be found
UnexpectedQueryResponse(QueryResponse)Unexpected response received
Tuple Fields of UnexpectedQueryResponse
Not in testnet “simulated payout” mode
NetworkDataError(DtError)Other types errors
Tuple Fields of NetworkDataError
0: DtErrorErrors received from the network via sn_messaging
Fields of ErrorMessage
source: ErrorMessageThe source of an error message
op_id: OperationIdoperation ID that was used to send the query
MessagingProtocol(MessagingError)Errors occurred when serialising or deserialising messages
Tuple Fields of MessagingProtocol
SelfEncryption(Error)self_enryption errors
Tuple Fields of SelfEncryption
0: ErrorConfigError(Error)Other types errors
Tuple Fields of ConfigError
0: ErrorIoError(Error)Io error.
Tuple Fields of IoError
0: ErrorEndpointSetup(ClientEndpointError)Endpoint setup error.
Tuple Fields of EndpointSetup
QuicP2p(SendError)QuicP2p error.
Tuple Fields of QuicP2p
0: SendErrorBincode error
Sled(Error)Sled error.
Tuple Fields of Sled
0: ErrorDatabase error.
Generic(String)Generic Error
Tuple Fields of Generic
0: StringBootstrapToPeerFailed(SocketAddr)Could not bootstrap to an unresponsive peer
Tuple Fields of BootstrapToPeerFailed
0: SocketAddrTrait Implementations
Performs the conversion.
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