pub trait CqlReadable: CqlType {
// Required method
fn read_from_db(
db_location: &str,
value_location: u64,
) -> Result<Self::ValueType>;
}Expand description
A CQL Value Type with single point read capability.
Allows the implementing type’s Self::ValueType to be read point-by-point from a CQL database. It should not actively validate that the given parameters are valid.
§Errors
Implementations of this function should return any I/O errors encountered during the function, excluding io::ErrorKind::UnexpectedEof errors on read from the database which should result in the default value being returned.
io::ErrorKind::Interrupted errors should also be ignored and the read continued.
§Panics
Implementations are allowed to panic if the given parameters are invalid, but they do not have to.
Required Methods§
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.