Enum safe_network::client::ErrorMessage [−][src]
#[non_exhaustive]
pub enum ErrorMessage {
Show 14 variants
AccessDenied(PublicKey),
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(PublicKey)Access denied for supplied PublicKey
Tuple Fields of AccessDenied
0: PublicKeyChunkNotFound(XorName)Requested data not found
Tuple Fields of ChunkNotFound
0: XorNameDataNotFound(DataAddress)Requested data not found
Tuple Fields of DataNotFound
0: DataAddressFailed to write file, likely due to a system Io error
InsufficientAdults(Prefix)Insufficient Adults found to store data
Tuple Fields of InsufficientAdults
0: PrefixProvided data already exists on the network
Entry could not be found on the data
Key does not exist
InvalidOwner(PublicKey)The list of owner keys is invalid
Tuple Fields of InvalidOwner
0: PublicKeyInvalidOperation(String)Invalid Operation such as a POST on ImmutableData
Tuple Fields of InvalidOperation
0: StringThere was an error forming the OperationId
Node failed to delete the requested data for some reason.
Error is not valid for operation id generation. This should not absolve a pending (and thus far unfulfilled) operation
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