Enum safe_network::messaging::data::Error [−][src]
#[non_exhaustive] pub enum Error { 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
AccessDenied(PublicKey)
Access denied for supplied PublicKey
DataNotFound(DataAddress)
Requested data not found
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
InvalidOwners(PublicKey)
The list of owner keys is invalid
InvalidOperation(String)
Invalid Operation such as a POST on ImmutableData
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
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
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
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