Trait cuprate_epee_encoding::EpeeObject

source ·
pub trait EpeeObject: Sized {
    type Builder: EpeeObjectBuilder<Self>;

    // Required methods
    fn number_of_fields(&self) -> u64;
    fn write_fields<B: BufMut>(self, w: &mut B) -> Result<()>;
}
Expand description

A trait for an object that can be turned into epee bytes.

Required Associated Types§

Required Methods§

source

fn number_of_fields(&self) -> u64

Returns the number of fields to be encoded.

source

fn write_fields<B: BufMut>(self, w: &mut B) -> Result<()>

write the objects fields into the writer.

Object Safety§

This trait is not object safe.

Implementors§