Struct sqlx_ledger::event::EventSubscriber
source · pub struct EventSubscriber { /* private fields */ }
Expand description
Contains fields to store & manage various ledger-related SqlxLedgerEvent
event receivers.
Implementations§
source§impl EventSubscriber
impl EventSubscriber
pub fn all(&self) -> Result<Receiver<SqlxLedgerEvent>, SqlxLedgerError>
pub async fn account_balance( &self, journal_id: JournalId, account_id: AccountId ) -> Result<Receiver<SqlxLedgerEvent>, SqlxLedgerError>
pub async fn journal( &self, journal_id: JournalId ) -> Result<Receiver<SqlxLedgerEvent>, SqlxLedgerError>
Trait Implementations§
source§impl Clone for EventSubscriber
impl Clone for EventSubscriber
source§fn clone(&self) -> EventSubscriber
fn clone(&self) -> EventSubscriber
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for EventSubscriber
impl Send for EventSubscriber
impl Sync for EventSubscriber
impl Unpin for EventSubscriber
impl !UnwindSafe for EventSubscriber
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