pub trait WriteBinary {
// Required methods
fn type_name() -> &'static str;
fn write(&self, b: BinaryObjectBuilder) -> BinaryObjectBuilder;
fn binary_type() -> BinaryType;
// Provided method
fn to_binary(&self) -> BinaryObject { ... }
}Expand description
Serialise Self as a whole Ignite binary (complex) object.
Required Methods§
Sourcefn type_name() -> &'static str
fn type_name() -> &'static str
The fully-qualified Ignite type name (used to derive the type id).
Sourcefn write(&self, b: BinaryObjectBuilder) -> BinaryObjectBuilder
fn write(&self, b: BinaryObjectBuilder) -> BinaryObjectBuilder
Write every field of self into b, returning the builder for
chaining.
Sourcefn binary_type() -> BinaryType
fn binary_type() -> BinaryType
The BinaryType metadata describing Self’s schema, suitable for
registration via OP_BINARY_TYPE_PUT.
Provided Methods§
Sourcefn to_binary(&self) -> BinaryObject
fn to_binary(&self) -> BinaryObject
Build a complete BinaryObject from self.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".