pub struct Frames { /* private fields */ }Expand description
Live stream of frames from the primary database. Useful if you need a higher granularity than the checkpointing mechanism.
Implementations§
Source§impl Frames
impl Frames
Sourcepub async fn next(&mut self) -> Result<Option<Vec<Frame>>>
pub async fn next(&mut self) -> Result<Option<Vec<Frame>>>
Waits and returns the next batch of frames, or None if the database is closed.
Sourcepub async fn try_next(&mut self) -> Result<Vec<Frame>>
pub async fn try_next(&mut self) -> Result<Vec<Frame>>
Returns the next batch of frames if available, or an Error if there is no new frames availabe.
Sourcepub fn ack_replicated(&self, last_replicated_frame_no: FrameNo)
pub fn ack_replicated(&self, last_replicated_frame_no: FrameNo)
Acknowledges that the frames up to the given frame number have been replicated. This will resolve any pending acks waiting for these frames to be safely replicated.
Auto Trait Implementations§
impl Freeze for Frames
impl !RefUnwindSafe for Frames
impl Send for Frames
impl Sync for Frames
impl Unpin for Frames
impl !UnwindSafe for Frames
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request