pub struct ReplicationBacklog { /* private fields */ }Implementations§
Source§impl ReplicationBacklog
impl ReplicationBacklog
pub fn new(max_bytes: usize, shard_count: usize) -> Self
pub fn push(&mut self, frame: Bytes, mutations: &[ReplicationMutation])
pub fn push_encoded(&mut self, frame: Bytes, mutations: &[ReplicationMutation])
pub fn catch_up_since( &self, watermarks: &ShardWatermarks, ) -> Result<BacklogCatchUp>
pub fn decode_frames(frames: &[Bytes]) -> Result<Vec<ReplicationFrame>>
pub fn latest_watermarks(&self) -> ShardWatermarks
pub fn retained_bytes(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReplicationBacklog
impl RefUnwindSafe for ReplicationBacklog
impl Send for ReplicationBacklog
impl Sync for ReplicationBacklog
impl Unpin for ReplicationBacklog
impl UnsafeUnpin for ReplicationBacklog
impl UnwindSafe for ReplicationBacklog
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