pub struct AccountSummarySnapshots { /* private fields */ }Expand description
Complete account summary snapshots from Client::account_summary_snapshots.
Implementations§
Source§impl AccountSummarySnapshots
impl AccountSummarySnapshots
Sourcepub async fn cancel(&self)
pub async fn cancel(&self)
Cancels the underlying subscription. The next call to next returns
Err(Error::Cancelled), then any rows not yet emitted, then None.
Sourcepub async fn next(&mut self) -> Option<Result<AccountSummarySnapshot, Error>>
pub async fn next(&mut self) -> Option<Result<AccountSummarySnapshot, Error>>
Returns the next snapshot, or None once the subscription has ended.
A snapshot completes at an End marker or after the quiet period without a row. Rows
received before the subscription ends are returned as a final snapshot.
Not cancel-safe: dropping the future, as tokio::select! does with the branches that lose,
drops the rows of a batch still being read.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AccountSummarySnapshots
impl !RefUnwindSafe for AccountSummarySnapshots
impl !UnwindSafe for AccountSummarySnapshots
impl Send for AccountSummarySnapshots
impl Sync for AccountSummarySnapshots
impl Unpin for AccountSummarySnapshots
impl UnsafeUnpin for AccountSummarySnapshots
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