Enum safe_network::node::Error [−][src]
#[non_exhaustive] pub enum Error {}Show 26 variants
NotAnAdult, NotAnElder, NoAdults(Prefix), Database(Error), NoSectionPublicKey, NoSectionPublicKeySet, NoSectionPublicKeyKnown(XorName), NoSuchData(DataAddress), TempDirCreationFailed(String), DataExists, Io(Error), JsonSerialisation(Error), Bincode(Error), ServiceMsg(Error), ServiceError(ServiceError), Message(Error), NetworkData(Error), Routing(Error), InvalidMessage(MessageId, String), InvalidOwner(PublicKey), InvalidOperation(String), NoErrorMapping(String), Logic(String), JoinTimeout, Configuration(String), 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.
Not enough in the section to perform Chunk operation
Tuple Fields of NoAdults
0: Prefix
Database error.
Not Section PublicKey.
Not Section PublicKeySet.
Not Section PublicKey.
Tuple Fields of NoSectionPublicKeyKnown
0: XorName
Key, Value pair not found.
Tuple Fields of NoSuchData
0: DataAddress
Creating temp directory failed.
Tuple Fields of TempDirCreationFailed
0: String
Chunk already exists for this node
I/O error.
Tuple Fields of Io
0: Error
JSON serialisation error.
Tuple Fields of JsonSerialisation
0: Error
Bincode error.
Tuple Fields of Bincode
0: Error
Network service message error.
Tuple Fields of ServiceMsg
0: Error
Network service error.
Tuple Fields of ServiceError
0: ServiceError
Network message error.
Tuple Fields of Message
0: Error
Network data error.
Tuple Fields of NetworkData
0: Error
Routing error.
Tuple Fields of Routing
0: Error
Message is invalid.
Data owner provided is invalid.
Tuple Fields of InvalidOwner
0: PublicKey
Operation is invalid, eg signing validation
Tuple Fields of InvalidOperation
0: 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 error.
Tuple Fields of Logic
0: String
Timeout when trying to join the network
Configuration error.
Tuple Fields of Configuration
0: String
Sled error.
Tuple Fields of Sled
0: 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