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>),
Expand description
Client Errors
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Expand description
Asymmetric Key Decryption Failed.
Expand description
Symmetric Key Decryption Failed.
Expand description
Received unexpected data.
Expand description
Received unexpected event.
Expand description
Could not query elder.
Expand description
Could not connect to elder.
Expand description
Client has not gone trhough qp2p bootstrap process yet
InsufficientElderConnections(usize)
Expand description
Could not connect to sufficient elder to retrieve reliable responses.
Expand description
Could not query elder.
Expand description
Could not send query to elder.
Expand description
Could not query elder.
Expand description
Could not query elder.
Expand description
No BLS section key known.
Expand description
No section prefix found for session
Expand description
No transfer validation listener .
UnexpectedMessageOnJoin(String)
Expand description
Unexpected message type receivied while joining.
Expand description
Permission set provided is not a PublicPermissionSet.
Expand description
Permission set provided is not a PrivatePermissionSet.
Expand description
Did not receive an incoming connection listener from qp2p
Expand description
Incorrect user permissions were returned
UnexpectedTransferEvent(Event)
Expand description
Unexpcted transfer event received
UnexpectedQueryResponse(QueryResponse)
Expand description
Unexpcted response received
UnexpectedHistoryResponse(QueryResponse)
Expand description
Unexpected response received
UnexpectedStoreCostResponse(QueryResponse)
Expand description
Unexpected response received
UnexpectedReplicaKeysResponse(PublicKey)
Expand description
Unexpected response received
Expand description
Transfer actor failed generating a transfer
Expand description
Transfer actor did not find any events to register locally
Expand description
Not in testnet “simulated payout” mode
NetworkDataError(DtError)
Expand description
Other sn_data_types errors
Transfer(TransfersError)
Expand description
Transfers errors
Expand description
Errors received from the network via sn_messaging
Show fields
Fields of ErrorMessage
source: ErrorMessage
Expand description
The source of an error message
msg_id: MessageId
Expand description
Message ID that was used to send the query
MessagingProtocol(MessagingError)
Expand description
Errors occurred when serialising or deserialising messages
SelfEncryption(SelfEncryptionError)
Expand description
self_enryption errors
ConfigError(Error)
Expand description
Other sn_data_types errors
IoError(Error)
Expand description
Io error.
QuicP2p(QuicP2pError)
Expand description
QuicP2p error.
Expand description
Bincode error
Trait Implementations
impl Error for Error
[src]
impl Error for Error
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<SelfEncryptionError> for Error
[src]
impl From<SelfEncryptionError> for Error
[src]fn from(source: SelfEncryptionError) -> Self
[src]
fn from(source: SelfEncryptionError) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin 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)
pub fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it
carries one. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = 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>,