pub struct BlockStore<'a> { /* private fields */ }Implementations§
Source§impl<'a> BlockStore<'a>
impl<'a> BlockStore<'a>
pub fn new(store: &'a Store) -> Self
pub fn insert(&self, block: &Block) -> StoreResult<()>
pub fn update(&self, block: &Block) -> StoreResult<()>
pub fn get(&self, id: &BlockId) -> StoreResult<Block>
pub fn list_for_session( &self, session_id: &SessionId, ) -> StoreResult<Vec<Block>>
pub fn update_status( &self, id: &BlockId, status: &BlockStatus, ) -> StoreResult<()>
Auto Trait Implementations§
impl<'a> Freeze for BlockStore<'a>
impl<'a> !RefUnwindSafe for BlockStore<'a>
impl<'a> !Send for BlockStore<'a>
impl<'a> !Sync for BlockStore<'a>
impl<'a> Unpin for BlockStore<'a>
impl<'a> UnsafeUnpin for BlockStore<'a>
impl<'a> !UnwindSafe for BlockStore<'a>
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