Enum skytable::Response [−][src]
#[non_exhaustive] pub enum Response { InvalidResponse, Item(Element), ParseError, UnsupportedDataType, }
Expand description
Responses
This enum represents responses returned by the server. This can either be an array (or bulk), a single item
or can be a parse error if the server returned some data but it couldn’t be parsed into the expected type
or it can be an invalid response in the event the server sent some invalid data.
This enum is #[non_exhaustive]
as more types of responses can be added in the future.
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.
The server sent an invalid response
Item(Element)
The server responded with something. This can be any of the Element
variants
We failed to parse data
The server sent some data of a type that this client doesn’t support