pub trait ReadableType: Sized {
// Required method
fn read_unwrapped(
type_code: TypeCode,
reader: &mut impl Read,
) -> IgniteResult<Option<Self>>;
// Provided method
fn read(reader: &mut impl Read) -> IgniteResult<Option<Self>> { ... }
}
Expand description
Indicates that a type could be used as cache key/value. Used alongside WritableType
Required Methods§
fn read_unwrapped( type_code: TypeCode, reader: &mut impl Read, ) -> IgniteResult<Option<Self>>
Provided Methods§
fn read(reader: &mut impl Read) -> IgniteResult<Option<Self>>
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.