pub struct InMemoryTupleStore { /* private fields */ }Expand description
A simple, in-memory implementation of the TupleStore trait using a HashSet.
Trait Implementations§
Source§impl Debug for InMemoryTupleStore
impl Debug for InMemoryTupleStore
Source§impl Default for InMemoryTupleStore
impl Default for InMemoryTupleStore
Source§fn default() -> InMemoryTupleStore
fn default() -> InMemoryTupleStore
Returns the “default value” for a type. Read more
Source§impl TupleStore for InMemoryTupleStore
impl TupleStore for InMemoryTupleStore
Source§fn read_tuples(
&self,
object: &Object,
relation: Option<&Relation>,
user: Option<&User>,
) -> Vec<RelationTuple>
fn read_tuples( &self, object: &Object, relation: Option<&Relation>, user: Option<&User>, ) -> Vec<RelationTuple>
Reads tuples from the store, with optional filtering. Read more
Source§fn write_tuple(&mut self, tuple: RelationTuple) -> Result<(), String>
fn write_tuple(&mut self, tuple: RelationTuple) -> Result<(), String>
Writes a single tuple to the store. Read more
Source§fn delete_tuple(&mut self, tuple: &RelationTuple) -> Result<(), String>
fn delete_tuple(&mut self, tuple: &RelationTuple) -> Result<(), String>
Deletes a single tuple from the store. Read more
Source§fn all_tuples(&self) -> Vec<RelationTuple>
fn all_tuples(&self) -> Vec<RelationTuple>
Returns all tuples currently stored. Read more
Source§fn replace_all(&mut self, tuples: Vec<RelationTuple>)
fn replace_all(&mut self, tuples: Vec<RelationTuple>)
Replaces all tuples currently stored. Read more
Auto Trait Implementations§
impl Freeze for InMemoryTupleStore
impl RefUnwindSafe for InMemoryTupleStore
impl Send for InMemoryTupleStore
impl Sync for InMemoryTupleStore
impl Unpin for InMemoryTupleStore
impl UnsafeUnpin for InMemoryTupleStore
impl UnwindSafe for InMemoryTupleStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more