pub trait DeserializableRequest: Sized + SerializableRequest {
// Required method
fn deserialize(buf: &mut &[u8]) -> Result<Self, ParseError>;
}
Expand description
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§
fn deserialize(buf: &mut &[u8]) -> Result<Self, ParseError>
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.