pub trait DeserializableRequest: SerializableRequest + Sized {
// Required method
fn deserialize(buf: &mut &[u8]) -> Result<Self, RequestDeserializationError>;
}
Expand description
Requests that can be deserialized from a CQL frame.
Not intended for driver’s direct usage (as driver has no interest in deserialising CQL requests), but very useful for testing (e.g. asserting that the sent requests have proper parameters set).
Required Methods§
Sourcefn deserialize(buf: &mut &[u8]) -> Result<Self, RequestDeserializationError>
fn deserialize(buf: &mut &[u8]) -> Result<Self, RequestDeserializationError>
Deserializes the request from the provided buffer.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.