pub struct SimpleProjectionTxn<'a> { /* private fields */ }Implementations§
Source§impl<'a> SimpleProjectionTxn<'a>
impl<'a> SimpleProjectionTxn<'a>
pub fn new(conn: MutexGuard<'a, Connection>) -> Result<Self>
Trait Implementations§
Source§impl<'a> Drop for SimpleProjectionTxn<'a>
impl<'a> Drop for SimpleProjectionTxn<'a>
Source§impl<'a> ProjectionTxn for SimpleProjectionTxn<'a>
impl<'a> ProjectionTxn for SimpleProjectionTxn<'a>
Source§fn apply_event(&mut self, _id: EventId, _bytes: &[u8]) -> Result<()>
fn apply_event(&mut self, _id: EventId, _bytes: &[u8]) -> Result<()>
Apply a single event to the projection
Source§fn commit(self: Box<Self>, new_cursor: EventId) -> Result<()>
fn commit(self: Box<Self>, new_cursor: EventId) -> Result<()>
Commit transaction and update cursor
Source§fn apply_batch(&mut self, events: &[(u64, Vec<u8>)]) -> Result<(), AzothError>
fn apply_batch(&mut self, events: &[(u64, Vec<u8>)]) -> Result<(), AzothError>
Apply a batch of events to the projection
Auto Trait Implementations§
impl<'a> Freeze for SimpleProjectionTxn<'a>
impl<'a> RefUnwindSafe for SimpleProjectionTxn<'a>
impl<'a> !Send for SimpleProjectionTxn<'a>
impl<'a> !Sync for SimpleProjectionTxn<'a>
impl<'a> Unpin for SimpleProjectionTxn<'a>
impl<'a> UnwindSafe for SimpleProjectionTxn<'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