#[non_exhaustive]
pub enum Error {
Show 14 variants
AccessDenied(User),
ChunkNotFound(XorName),
DataNotFound(DataAddress),
FailedToWriteFile,
InsufficientAdults(Prefix),
DataExists,
NoSuchEntry,
NoSuchKey,
InvalidOwner(PublicKey),
InvalidOperation(String),
NoOperationId,
FailedToDelete,
InvalidQueryResponseErrorForOperationId,
WrongDestination,
}
Expand description
Errors that can occur when interactive with client messaging APIs.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
AccessDenied(User)
Access denied for user
ChunkNotFound(XorName)
Requested data not found
DataNotFound(DataAddress)
Requested data not found
FailedToWriteFile
Failed to write file, likely due to a system Io error
InsufficientAdults(Prefix)
Insufficient Adults found to store data
DataExists
Provided data already exists on the network
NoSuchEntry
Entry could not be found on the data
NoSuchKey
Key does not exist
InvalidOwner(PublicKey)
The list of owner keys is invalid
InvalidOperation(String)
Invalid Operation such as a POST on ImmutableData
NoOperationId
There was an error forming the OperationId
FailedToDelete
Node failed to delete the requested data for some reason.
InvalidQueryResponseErrorForOperationId
Error is not valid for operation id generation. This should not absolve a pending (and thus far unfulfilled) operation
WrongDestination
Destination is either outdated or incorrect
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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