Enum safe_network::client::ErrorMessage [−][src]
#[non_exhaustive] pub enum ErrorMessage { AccessDenied(PublicKey), DataNotFound(DataAddress), FailedToWriteFile, DataExists, NoSuchEntry, NoSuchKey, InvalidOwners(PublicKey), InvalidOperation(String), FailedToDelete, }
Expand description
Errors that can occur when interactive with client messaging APIs.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Access denied for supplied PublicKey
Tuple Fields of AccessDenied
0: PublicKey
Requested data not found
Tuple Fields of DataNotFound
0: DataAddress
Failed to write file, likely due to a system Io error
Provided data already exists on the network
Entry could not be found on the data
Key does not exist
The list of owner keys is invalid
Tuple Fields of InvalidOwners
0: PublicKey
Invalid Operation such as a POST on ImmutableData
Tuple Fields of InvalidOperation
0: String
Node failed to delete the requested data for some reason.
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.
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