Trait Adapter

Source
pub trait Adapter: Send + Sync {
    // Required method
    fn get(&mut self, name: &[u8]) -> Option<Result<Record>>;
}
Expand description

A repository adapter.

Required Methods§

Source

fn get(&mut self, name: &[u8]) -> Option<Result<Record>>

Returns the record with the given name.

Implementations on Foreign Types§

Source§

impl Adapter for Vec<Record>

Source§

fn get(&mut self, name: &[u8]) -> Option<Result<Record>>

Implementors§

Source§

impl Adapter for Empty

Source§

impl<R> Adapter for IndexedReader<R>
where R: BufRead + Seek + Send + Sync,