#[non_exhaustive]pub enum SerializableError {
Show 17 variants
MissingBinaries(Vec<BinPtr>),
ObjectAlreadyExists(ObjectId),
EventAlreadyExists(EventId),
ObjectDoesNotExist(ObjectId),
QueryDoesNotExist(QueryId),
TypeDoesNotExist(TypeId),
BinaryHashMismatch(BinPtr),
NullByteInString,
InvalidToken(SessionToken),
InvalidNumber,
InvalidTime(SystemTime),
EventTooEarly {
event_id: EventId,
object_id: ObjectId,
created_at: EventId,
},
WrongType {
object_id: ObjectId,
expected_type_id: TypeId,
real_type_id: TypeId,
},
ConnectionLoss,
ProtocolViolation,
Forbidden,
InternalServerError,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingBinaries(Vec<BinPtr>)
ObjectAlreadyExists(ObjectId)
EventAlreadyExists(EventId)
ObjectDoesNotExist(ObjectId)
QueryDoesNotExist(QueryId)
TypeDoesNotExist(TypeId)
BinaryHashMismatch(BinPtr)
NullByteInString
InvalidToken(SessionToken)
InvalidNumber
InvalidTime(SystemTime)
EventTooEarly
WrongType
ConnectionLoss
ProtocolViolation
Forbidden
InternalServerError
Trait Implementations§
Source§impl Clone for SerializableError
impl Clone for SerializableError
Source§fn clone(&self) -> SerializableError
fn clone(&self) -> SerializableError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SerializableError
impl Debug for SerializableError
Source§impl<'de> Deserialize<'de> for SerializableError
impl<'de> Deserialize<'de> for SerializableError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SerializableError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SerializableError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SerializableError
impl Display for SerializableError
Source§impl Error for SerializableError
impl Error for SerializableError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for SerializableError
impl From<Error> for SerializableError
Source§fn from(err: Error) -> SerializableError
fn from(err: Error) -> SerializableError
Converts to this type from the input type.
Source§impl From<SerializableError> for Error
impl From<SerializableError> for Error
Source§fn from(err: SerializableError) -> Error
fn from(err: SerializableError) -> Error
Converts to this type from the input type.
Source§impl Serialize for SerializableError
impl Serialize for SerializableError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SerializableError
impl RefUnwindSafe for SerializableError
impl Send for SerializableError
impl Sync for SerializableError
impl Unpin for SerializableError
impl UnwindSafe for SerializableError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more