pub enum DBPacketResponseError {
BadPacket,
DBNotFound,
DBFileSystemError,
ValueNotFound,
DBAlreadyExists,
SerializationError,
DeserializationError,
InvalidPermissions,
UserNotFound,
}
Expand description
Represents the various types of errors that can occur when an error is returned in a db packet response
Variants§
BadPacket
BadPacket represents a packet that was improperly handled, these should be reported immediately and should never happen under proper circumstances.
DBNotFound
DBNotFound represents a request to a database that does not exist.
DBFileSystemError
DBFileSystemError represents an issue loading or reading the file that contains a given database, not necessarily it not existing.
ValueNotFound
ValueNotFound represents when a given value in a database does not exist.
DBAlreadyExists
DBAlreadyExists represents when attempting to create a database fails because that database already exists either as a file or in the db list.
SerializationError
An error occurred during serialization, specifically not during deserialization, but during serialization. This should never happen.
DeserializationError
An error occurred during deserialization, data could have been dropped during transmission, or an unexpected or malformed packet was received.
InvalidPermissions
The client issuing the command does not have the required permissions to this data or operation
UserNotFound
A user was attempted to be read, and was not found
Trait Implementations§
source§impl Clone for DBPacketResponseError
impl Clone for DBPacketResponseError
source§fn clone(&self) -> DBPacketResponseError
fn clone(&self) -> DBPacketResponseError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DBPacketResponseError
impl Debug for DBPacketResponseError
source§impl<'de> Deserialize<'de> for DBPacketResponseError
impl<'de> Deserialize<'de> for DBPacketResponseError
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<DBPacketResponseError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DBPacketResponseError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl Display for DBPacketResponseError
impl Display for DBPacketResponseError
source§impl PartialEq for DBPacketResponseError
impl PartialEq for DBPacketResponseError
source§fn eq(&self, other: &DBPacketResponseError) -> bool
fn eq(&self, other: &DBPacketResponseError) -> bool
self
and other
values to be equal, and is used
by ==
.