Enum sn_client::Error[][src]

#[non_exhaustive]pub enum Error {
    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(ErrorMessage),
    MessagingProtocol(MessagingError),
    SelfEncryption(SelfEncryptionError),
    ConfigError(Error),
    IoError(Error),
    QuicP2p(QuicP2pError),
    Serialisation(Box<ErrorKind>),
}

Client Errors

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AsymmetricDecipherFailure

Asymmetric Key Decryption Failed.

SymmetricDecipherFailure

Symmetric Key Decryption Failed.

ReceivedUnexpectedData

Received unexpected data.

ReceivedUnexpectedEvent

Received unexpected event.

ElderQuery

Could not query elder.

ElderConnection

Could not connect to elder.

NotBootstrapped

Client has not gone trhough qp2p bootstrap process yet

InsufficientElderConnections(usize)

Could not connect to sufficient elder to retrieve reliable responses.

ReceivingQuery

Could not query elder.

SendingQuery

Could not send query to elder.

QueryReceiverError

Could not query elder.

NoResponse

Could not query elder.

NoBlsSectionKey

No BLS section key known.

NoSectionPrefixKnown

No section prefix found for session

NoTransferValidationListener

No transfer validation listener .

UnexpectedMessageOnJoin(String)

Unexpected message type receivied while joining.

NotPublicPermissions

Permission set provided is not a PublicPermissionSet.

NotPrivatePermissions

Permission set provided is not a PrivatePermissionSet.

NoElderListenerEstablished

Did not receive an incoming connection listener from qp2p

IncorrectPermissions

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

NoTransferGenerated

Transfer actor failed generating a transfer

NoTransferEventsForLocalActor

Transfer actor did not find any events to register locally

NotBuiltWithSimulatedPayouts

Not in testnet “simulated payout” mode

NetworkDataError(DtError)

Other sn_data_types errors

Transfer(TransfersError)

Transfers errors

ErrorMessage(ErrorMessage)

Errors received from the network via sn_messaging

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.

Serialisation(Box<ErrorKind>)

Bincode error

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Box<ErrorKind, Global>> for Error[src]

impl From<CmdError> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<SelfEncryptionError> for Error[src]

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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,