pub struct Producer<'env> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'env> Topic for Producer<'env>
impl<'env> Topic for Producer<'env>
fn get_env(&self) -> &Env
fn get_db(&self) -> Database
fn lag(&self) -> Result<u64, Error>
fn inc( &self, txn: &mut RwTransaction<'_>, key: &[u8], delta: u64, ) -> Result<(), Error>
fn replace( &self, txn: &mut RwTransaction<'_>, key: &[u8], value: u64, ) -> Result<(), Error>
fn get_tail<TXN>(db: Database, txn: &TXN) -> Result<(u64, u64), Error>where
TXN: Transaction,
fn get_value<TXN>(db: Database, txn: &TXN, key: &[u8]) -> Result<u64, Error>where
TXN: Transaction,
Auto Trait Implementations§
impl<'env> Freeze for Producer<'env>
impl<'env> RefUnwindSafe for Producer<'env>
impl<'env> Send for Producer<'env>
impl<'env> Sync for Producer<'env>
impl<'env> Unpin for Producer<'env>
impl<'env> UnwindSafe for Producer<'env>
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