azalea::inventory::components

Trait EncodableDataComponent

Source
pub trait EncodableDataComponent:
    Send
    + Sync
    + Any {
    // Required methods
    fn encode(&self, buf: &mut Vec<u8>) -> Result<(), Error>;
    fn clone(&self) -> Box<dyn EncodableDataComponent>;
    fn eq(&self, other: Box<dyn EncodableDataComponent>) -> bool;
}

Required Methods§

Source

fn encode(&self, buf: &mut Vec<u8>) -> Result<(), Error>

Source

fn clone(&self) -> Box<dyn EncodableDataComponent>

Source

fn eq(&self, other: Box<dyn EncodableDataComponent>) -> bool

Implementors§