Enum sn_client::Error [−][src]
#[non_exhaustive] pub enum Error {}Show variants
AsymmetricDecipherFailure, SymmetricDecipherFailure, ReceivedUnexpectedData, ReceivedUnexpectedEvent, ElderQuery, ElderConnection, NotBootstrapped, InsufficientElderConnections(usize), ReceivingQuery, SendingQuery, QueryReceiverError, NoResponse, NoBlsSectionKey, NoSectionPrefixKnown, NoTransferValidationListener, UnexpectedMessageOnJoin(String), NotPublicPermissions, NotPrivatePermissions, NoElderListenerEstablished, IncorrectPermissions, UnexpectedTransferEvent(Event), UnexpectedQueryResponse(QueryResponse), UnexpectedHistoryResponse(QueryResponse), UnexpectedStoreCostResponse(QueryResponse), UnexpectedReplicaKeysResponse(PublicKey), NoTransferGenerated, NoTransferEventsForLocalActor, NotBuiltWithSimulatedPayouts, NetworkDataError(DtError), Transfer(TransfersError), ErrorMessage { source: ErrorMessage, msg_id: MessageId, }, MessagingProtocol(MessagingError), SelfEncryption(SelfEncryptionError), ConfigError(Error), IoError(Error), QuicP2p(QuicP2pError), Serialisation(Box<ErrorKind>),
Client Errors
Variants (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
No transfer validation listener .
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
UnexpectedTransferEvent(Event)
Unexpcted transfer event received
UnexpectedQueryResponse(QueryResponse)
Unexpcted response received
UnexpectedHistoryResponse(QueryResponse)
Unexpected response received
UnexpectedStoreCostResponse(QueryResponse)
Unexpected response received
UnexpectedReplicaKeysResponse(PublicKey)
Unexpected response received
Transfer actor failed generating a transfer
Transfer actor did not find any events to register locally
Not in testnet “simulated payout” mode
NetworkDataError(DtError)
Other sn_data_types errors
Transfer(TransfersError)
Transfers errors
Errors received from the network via sn_messaging
Show fields
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 sn_data_types errors
IoError(Error)
Io error.
QuicP2p(QuicP2pError)
QuicP2p error.
Bincode error
Trait Implementations
impl From<SelfEncryptionError> for Error
[src]
impl From<SelfEncryptionError> for Error
[src]fn from(source: SelfEncryptionError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> AsFail for T where
T: Fail,
impl<T> AsFail for T where
T: Fail,
pub fn as_fail(&self) -> &(dyn Fail + 'static)
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,