Enum safe_network::client::Error [−][src]
#[non_exhaustive]
pub enum Error {
Show 37 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),
NotEnoughChunks(usize, usize),
}
Expand description
Client Errors
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Aggregation(String)
Signature Aggregation Error
Tuple Fields of Aggregation
0: String
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 through qp2p bootstrap process yet
InsufficientElderConnections(usize)
Could not connect to sufficient elder to retrieve reliable responses.
Tuple Fields of InsufficientElderConnections
0: usize
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 received while joining.
Tuple Fields of UnexpectedMessageOnJoin
0: String
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
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: DtError
Errors received from the network via sn_messaging
Fields of ErrorMessage
source: ErrorMessage
The source of an error message
op_id: OperationId
operation 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: Error
ConfigError(Error)
Other types errors
Tuple Fields of ConfigError
0: Error
IoError(Error)
Io error.
Tuple Fields of IoError
0: Error
EndpointSetup(ClientEndpointError)
Endpoint setup error.
Tuple Fields of EndpointSetup
QuicP2p(SendError)
QuicP2p error.
Tuple Fields of QuicP2p
0: SendError
Bincode error
Sled(Error)
Sled error.
Tuple Fields of Sled
0: Error
Database error.
Generic(String)
Generic Error
Tuple Fields of Generic
0: String
BootstrapToPeerFailed(SocketAddr)
Could not bootstrap to an unresponsive peer
Tuple Fields of BootstrapToPeerFailed
0: SocketAddr
Could not retrieve all chunks required to decrypt the data. (Expected, Actual)
Trait 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
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