Skip to main content

WriteBinary

Trait WriteBinary 

Source
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§

Source

fn type_name() -> &'static str

The fully-qualified Ignite type name (used to derive the type id).

Source

fn write(&self, b: BinaryObjectBuilder) -> BinaryObjectBuilder

Write every field of self into b, returning the builder for chaining.

Source

fn binary_type() -> BinaryType

The BinaryType metadata describing Self’s schema, suitable for registration via OP_BINARY_TYPE_PUT.

Provided Methods§

Source

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".

Implementors§