Struct garage_model::bucket_table::BucketTable
source · pub struct BucketTable;
Trait Implementations§
source§impl TableSchema for BucketTable
impl TableSchema for BucketTable
source§const TABLE_NAME: &'static str = "bucket_v2"
const TABLE_NAME: &'static str = "bucket_v2"
The name of the table in the database
§type S = FixedBytes32
type S = FixedBytes32
The sort key used int that table
§type Filter = DeletedFilter
type Filter = DeletedFilter
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 BucketTable
impl RefUnwindSafe for BucketTable
impl Send for BucketTable
impl Sync for BucketTable
impl Unpin for BucketTable
impl UnwindSafe for BucketTable
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