Enum safe_network::node::Error [−][src]
#[non_exhaustive] pub enum Error {}Show variants
FlexiLoggerError(FlexiLoggerError), NotAnAdult, NotAnElder, NoAdults(Prefix), NotEnoughSpace, NetworkFull, NoSourceMessageForProcessingError, UnexpectedProcessMsg, NoSectionFunds, NoSectionMetaData, NoImmutableChunks, NodeChurningFunds, ChurnSignError, NotInGenesis, NoDestinationName, NodeAlreadyActive, NoSectionPublicKey, UnknownSectionKey(PublicKey), CannotDirectMessage, CannotUpdateProcessErrorNode, ProvidedPkIsNotBlsShare, ProvidedPkIsNotBls, NoSectionPublicKeySet, NoSectionPublicKeyKnown(XorName), InvalidRewardStage, NodeNotFoundForReward, NoSuchChunk(DataAddress), NotChurningFunds, TempDirCreationFailed(String), NoStoreId, CouldNotCombineSignatures, DataExists, Io(Error), JsonSerialisation(Error), Bincode(Error), ClientMsg(Error), ProcessingError(ProcessingError), Message(Error), PickleDb(Error), NetworkData(Error), Transfer(Error), Routing(Error), TransferAlreadyRegistered, InvalidSignedTransfer(Dot<PublicKey>), InvalidPropagatedTransfer(CreditAgreementProof), InvalidMessage(MessageId, String), InvalidOwner(PublicKey), InvalidOperation(String), NoErrorMapping(String), Logic(String), JoinTimeout, Configuration(String), UnableToSend(MessageType),
Expand description
Node error variants.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
FlexiLoggerError(FlexiLoggerError)
FlexiLogger error
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)
No Adults in the section to perform Chunk operation
Not enough space in DataStore
to perform put
.
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
NoSuchChunk(DataAddress)
Key, Value pair not found in DataStore
.
Unable to process fund churn message.
TempDirCreationFailed(String)
Creating temp directory failed.
Chunk Store Id could not be found
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.
ClientMsg(Error)
Network message error.
ProcessingError(ProcessingError)
Network processing error message.
Message(Error)
Network message error.
PickleDb(Error)
PickleDb error.
NetworkData(Error)
NetworkData error.
Transfer(Error)
transfers error.
Routing(Error)
Routing error.
Transfer has already been registered
Transfer message is invalid.
InvalidPropagatedTransfer(CreditAgreementProof)
Transfer message is invalid.
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(MessageType)
Failed to send message to connection.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
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
.
Mutably borrows from an owned value. 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