Struct garage_model::key_table::KeyTable
source · pub struct KeyTable;
Trait Implementations§
source§impl TableSchema for KeyTable
impl TableSchema for KeyTable
source§const TABLE_NAME: &'static str = "key"
const TABLE_NAME: &'static str = "key"
The name of the table in the database
§type Filter = KeyFilter
type Filter = KeyFilter
The type for a filter that can be applied to select entries
(e.g. filter out deleted entries)
fn matches_filter(entry: &Self::E, filter: &Self::Filter) -> bool
source§fn updated(
&self,
_tx: &mut Transaction<'_>,
_old: Option<&Self::E>,
_new: Option<&Self::E>
) -> Result<(), TxOpError>
fn updated( &self, _tx: &mut Transaction<'_>, _old: Option<&Self::E>, _new: Option<&Self::E> ) -> Result<(), TxOpError>
Actions triggered by data changing in a table. If such actions
include updates to the local database that should be applied
atomically with the item update itself, a db transaction is
provided on which these changes should be done.
This function can return a DB error but that’s all.
Auto Trait Implementations§
impl Freeze for KeyTable
impl RefUnwindSafe for KeyTable
impl Send for KeyTable
impl Sync for KeyTable
impl Unpin for KeyTable
impl UnwindSafe for KeyTable
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