Enum safe_network::routing::Error[][src]

pub enum Error {
Show 44 variants FailedSignature, UntrustedSectionAuthProvider(String), UntrustedProofChain(String), CannotRoute(usizeusize), EmptyRecipientList, BootstrapFailed, CannotConnectEndpoint { err: EndpointError, }, AddressNotReachable { err: RpcError, }, InvalidState, InvalidSrcLocation, InvalidDstLocation(String), InvalidMessage, InvalidSignatureShare, MissingSecretKeyShare, FailedSend(SocketAddrXorName), ConnectionClosed, InvalidSectionChain(SecuredLinkedListError), Messaging(Error), ProposalError(ProposalError), InvalidPayload, TryJoinLater, NoMatchingSection, NoMatchingElder, NodeNotReachable(SocketAddr), Database(Error), NoAdults(Prefix), NoSectionPublicKey, NoSectionPublicKeySet, NoSectionPublicKeyKnown(XorName), NoSuchData(DataAddress), TempDirCreationFailed(String), DataExists, Io(Error), JsonSerialisation(Error), Bincode(Error), ServiceMsg(Error), NetworkData(Error), InvalidOwner(PublicKey), InvalidOperation(String), NoErrorMapping(String), Logic(String), JoinTimeout, Configuration(String), InvalidQueryResponseAuthority,
}
Expand description

Internal error.

Variants

FailedSignature
UntrustedSectionAuthProvider(String)

Tuple Fields of UntrustedSectionAuthProvider

0: String
UntrustedProofChain(String)

Tuple Fields of UntrustedProofChain

0: String
CannotRoute(usizeusize)

Tuple Fields of CannotRoute

0: usize1: usize
EmptyRecipientList
BootstrapFailed
CannotConnectEndpoint

Fields of CannotConnectEndpoint

err: EndpointError
AddressNotReachable

Fields of AddressNotReachable

err: RpcError
InvalidState
InvalidSrcLocation
InvalidDstLocation(String)

Tuple Fields of InvalidDstLocation

0: String
InvalidMessage
InvalidSignatureShare
MissingSecretKeyShare
FailedSend(SocketAddrXorName)

Tuple Fields of FailedSend

0: SocketAddr1: XorName
ConnectionClosed
InvalidSectionChain(SecuredLinkedListError)

Tuple Fields of InvalidSectionChain

0: SecuredLinkedListError
Messaging(Error)

Tuple Fields of Messaging

0: Error
ProposalError(ProposalError)

Tuple Fields of ProposalError

0: ProposalError
InvalidPayload
TryJoinLater
NoMatchingSection
NoMatchingElder
NodeNotReachable(SocketAddr)

Tuple Fields of NodeNotReachable

0: SocketAddr
Database(Error)

Database error.

Tuple Fields of Database

0: Error
NoAdults(Prefix)

Not enough in the section to perform Chunk operation

Tuple Fields of NoAdults

0: Prefix
NoSectionPublicKey

Not Section PublicKey.

NoSectionPublicKeySet

Not Section PublicKeySet.

NoSectionPublicKeyKnown(XorName)

Not Section PublicKey.

Tuple Fields of NoSectionPublicKeyKnown

0: XorName
NoSuchData(DataAddress)

Key, Value pair not found.

Tuple Fields of NoSuchData

0: DataAddress
TempDirCreationFailed(String)

Creating temp directory failed.

Tuple Fields of TempDirCreationFailed

0: String
DataExists

Chunk already exists for this node

Io(Error)

I/O error.

Tuple Fields of Io

0: Error
JsonSerialisation(Error)

JSON serialisation error.

Tuple Fields of JsonSerialisation

0: Error
Bincode(Error)

Bincode error.

Tuple Fields of Bincode

0: Error
ServiceMsg(Error)

Network service message error.

Tuple Fields of ServiceMsg

0: Error
NetworkData(Error)

Network data error.

Tuple Fields of NetworkData

0: Error
InvalidOwner(PublicKey)

Data owner provided is invalid.

Tuple Fields of InvalidOwner

0: PublicKey
InvalidOperation(String)

Operation is invalid, eg signing validation

Tuple Fields of InvalidOperation

0: String
NoErrorMapping(String)

No mapping to sn_messages::Error could be found. Either we need a new error there, or we need to handle or convert this error before sending it as a message

Tuple Fields of NoErrorMapping

0: String
Logic(String)

Logic error.

Tuple Fields of Logic

0: String
JoinTimeout

Timeout when trying to join the network

Configuration(String)

Configuration error.

Tuple Fields of Configuration

0: String
InvalidQueryResponseAuthority

Configuration error.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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