[][src]Trait artifice_manager::database::Table

pub trait Table<'a, A: ToString, T: Debug + Clone + Serialize + Deserialize<'a> + GetPrimaryKey<A>, F: Error + Sized> {
    fn create<P: AsRef<Path>>(path: P, password: &[u8]) -> Result<Self, F>
    where
        Self: Sized
;
fn get<K: ToString>(&self, key: &K) -> Result<T, F>;
fn insert<K: ToString>(&self, peer: &T) -> Result<(), F>; }

Required methods

fn create<P: AsRef<Path>>(path: P, password: &[u8]) -> Result<Self, F> where
    Self: Sized

fn get<K: ToString>(&self, key: &K) -> Result<T, F>

fn insert<K: ToString>(&self, peer: &T) -> Result<(), F>

Loading content...

Implementors

impl<'_> Table<'_, String, ArtificePeer, Error> for ArtificePeers[src]

impl<'a> Table<'a, String, Permission, Error> for PermissionManager[src]

Loading content...