Enum safe_network::node::Error [−][src]
#[non_exhaustive] pub enum Error {}Show 48 variants
NotAnAdult, NotAnElder, NoAdults(Prefix), Database(Error), NetworkFull, NoSourceMessageForProcessingError, UnexpectedProcessMsg, NoSectionFunds, NoSectionMetaData, NoImmutableChunks, NodeChurningFunds, ChurnSignError, NotInGenesis, NoDestinationName, NodeAlreadyActive, NoSectionPublicKey, UnknownSectionKey(PublicKey), CannotDirectMessage, CannotUpdateProcessErrorNode, ProvidedPkIsNotBlsShare, ProvidedPkIsNotBls, NoSectionPublicKeySet, NoSectionPublicKeyKnown(XorName), InvalidRewardStage, NodeNotFoundForReward, NoSuchData(DataAddress), NotChurningFunds, TempDirCreationFailed(String), CouldNotCombineSignatures, DataExists, Io(Error), JsonSerialisation(Error), Bincode(Error), DataMsg(Error), ProcessingError(ProcessingError), Message(Error), NetworkData(Error), Routing(Error), InvalidMessage(MessageId, String), InvalidOwner(PublicKey), InvalidOperation(String), NoErrorMapping(String), Logic(String), JoinTimeout, Configuration(String), UnableToSend(WireMsg), UnableToCreateRegisterDb, Sled(Error),
Expand description
Node error variants.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Attempted to perform an operation meant only for Adults when we are not one.
Attempted to perform an operation meant only for Elders when we are not one.
NoAdults(Prefix)
Not enough in the section to perform Chunk operation
Database error.
Not enough storage available on the network.
No source message provided for ProcessingError
Unexpected Process msg. A ProcessingError was expected here…
Node does not manage any section funds.
Node does not manage any metadata, so is likely not a fully prepared elder yet.
Node does not manage any immutable chunks.
Node is currently churning so cannot perform the request.
Node is currently churning, but failed to sign a message.
Genesis node not in genesis stage.
Target xorname could not be determined from DstLocation
Failed to activate a node, due to it being active already
Not Section PublicKey.
UnknownSectionKey(PublicKey)
Unknown as a Section PublicKey.
Nodes cannot send direct messages
Node cannot be updated, message cannot be resent
Not a Section PublicKeyShare.
Not a Section PublicKey.
Not Section PublicKeySet.
NoSectionPublicKeyKnown(XorName)
Not Section PublicKey.
Unable to parse reward proposal.
Node not found for rewarding
NoSuchData(DataAddress)
Key, Value pair not found.
Unable to process fund churn message.
TempDirCreationFailed(String)
Creating temp directory failed.
Threshold crypto combine signatures error
Chunk already exists for this node
Io(Error)
I/O error.
JsonSerialisation(Error)
JSON serialisation error.
Bincode(Error)
Bincode error.
DataMsg(Error)
Network message error.
ProcessingError(ProcessingError)
Network processing error message.
Message(Error)
Network message error.
NetworkData(Error)
NetworkData error.
Routing(Error)
Routing error.
Message is invalid.
InvalidOwner(PublicKey)
Data owner provided is invalid.
InvalidOperation(String)
Operation is invalid, eg signing validation
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
Logic(String)
Logic error.
Timeout when trying to join the network
Configuration(String)
Configuration error.
UnableToSend(WireMsg)
Failed to send message to connection.
Sled Failed to create the database
Sled(Error)
Sled error.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
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