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§
type Builder: EpeeObjectBuilder<Self>
Required Methods§
sourcefn number_of_fields(&self) -> u64
fn number_of_fields(&self) -> u64
Returns the number of fields to be encoded.
Object Safety§
This trait is not object safe.