pub struct Table<'mmap, K: RadbKey + ?Sized> {
storage: &'mmap Storage,
table_id: u64,
_key_type: PhantomData<K>,
}
Fields§
§storage: &'mmap Storage
§table_id: u64
§_key_type: PhantomData<K>
Implementations§
source§impl<'mmap, K: RadbKey + ?Sized> Table<'mmap, K>
impl<'mmap, K: RadbKey + ?Sized> Table<'mmap, K>
pub(crate) fn new( table_id: u64, storage: &'mmap Storage ) -> Result<Table<'mmap, K>, Error>
pub fn begin_write(&mut self) -> Result<WriteTransaction<'mmap, K>, Error>
pub fn read_transaction(&self) -> Result<ReadOnlyTransaction<'mmap, K>, Error>
Auto Trait Implementations§
impl<'mmap, K> !RefUnwindSafe for Table<'mmap, K>
impl<'mmap, K> !Send for Table<'mmap, K>
impl<'mmap, K> !Sync for Table<'mmap, K>
impl<'mmap, K: ?Sized> Unpin for Table<'mmap, K>where
K: Unpin,
impl<'mmap, K> !UnwindSafe for Table<'mmap, K>
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