Skip to main content

Table

Trait Table 

Source
pub trait Table {
    // Required methods
    fn init(table_id: TableId, logger: Logger) -> Self;
    fn handle_event(&mut self, bytes: &[u8]) -> DbResult<()>;
    fn compact_repr(&self) -> DbResult<Vec<u8>>;
}

Required Methods§

Source

fn init(table_id: TableId, logger: Logger) -> Self

Source

fn handle_event(&mut self, bytes: &[u8]) -> DbResult<()>

Source

fn compact_repr(&self) -> DbResult<Vec<u8>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<K1, K2, V> Table for LookupMap<K1, K2, V>

Source§

impl<K, V> Table for LookupSet<K, V>

Source§

impl<K, V, S> Table for LookupTable<K, V, S>

Source§

impl<K, V, S> Table for LookupList<K, V, S>

Source§

impl<T> Table for List<T>

Source§

impl<T> Table for Single<T>