Trait BackendInner

Source
pub trait BackendInner: Send + Sync {
    // Required methods
    fn encoding(&self) -> GraphEncoding;
    fn load(
        &mut self,
        builders: &[&[u8]],
        target: ExecutionTarget,
    ) -> Result<Graph, BackendError>;
    fn as_dir_loadable<'a>(&'a mut self) -> Option<&'a mut dyn BackendFromDir>;
}
Expand description

A Backend contains the necessary state to load Graphs.

Required Methods§

Source

fn encoding(&self) -> GraphEncoding

Source

fn load( &mut self, builders: &[&[u8]], target: ExecutionTarget, ) -> Result<Graph, BackendError>

Source

fn as_dir_loadable<'a>(&'a mut self) -> Option<&'a mut dyn BackendFromDir>

Implementors§