[][src]Enum sn_client::Error

#[non_exhaustive]pub enum Error {
    AsymmetricDecipherFailure,
    SymmetricDecipherFailure,
    ReceivedUnexpectedData,
    ReceivedUnexpectedEvent,
    InvalidConfigPath,
    ElderQuery,
    ElderConnection,
    InsufficientElderConnections,
    ReceivingQuery,
    NoResponse,
    NoTransferValidationListener,
    UnexpectedMessageOnJoin(String),
    NotPublicPermissions,
    NotPrivatePermissions,
    NoElderListenerEstablished,
    IncorrectPermissions,
    UnexpectedTransferEvent(Event),
    UnexpectedQueryResponse(QueryResponse),
    UnexpectedHistoryResponse(QueryResponse),
    UnexpectedStoreCostResponse(QueryResponse),
    UnexpectedReplicaKeysResponse(PublicKey),
    NoTransferGenerated,
    NoTransferEventsForLocalActor,
    NoHomeDir,
    NotBuiltWithSimulatedPayouts,
    NetworkDataError(DtError),
    Transfer(TransfersError),
    ErrorMessage(ErrorMessage),
    SelfEncryption(SelfEncryptionError),
    ConfigError(Error),
    IoError(Error),
    QuicP2p(QuicP2pError),
    Bincode(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.

InvalidConfigPath

Config path is not valid.

ElderQuery

Could not query elder.

ElderConnection

Could not connecet to elder.

InsufficientElderConnections

Could not connect to sufficient elder to retrieve reliable responses.

ReceivingQuery

Could not query elder.

NoResponse

Could not query elder.

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

NoHomeDir

Could not determine system home dir

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

SelfEncryption(SelfEncryptionError)

self_enryption errors

ConfigError(Error)

Other sn_data_types errors

IoError(Error)

Io error.

QuicP2p(QuicP2pError)

QuicP2p error.

Bincode(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<SelfEncryptionError> for Error[src]

Auto Trait Implementations

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<T> DebugAny for T where
    T: Any + Debug

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> 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<T> UnsafeAny for T where
    T: Any

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