pub struct SimpleCommitObserver { /* private fields */ }Expand description
Simple implementation: linearize committed blocks and send the subdag on a channel.
Implementations§
Source§impl SimpleCommitObserver
impl SimpleCommitObserver
pub fn new(tx: UnboundedSender<CommittedSubDag>) -> Self
pub fn linearizer(&self) -> &Linearizer
Trait Implementations§
Source§impl CommitObserver for SimpleCommitObserver
impl CommitObserver for SimpleCommitObserver
Source§fn handle_commit(&self, committed: Vec<LeaderStatus>)
fn handle_commit(&self, committed: Vec<LeaderStatus>)
Handle a batch of committed leader statuses from the committer.
Auto Trait Implementations§
impl Freeze for SimpleCommitObserver
impl RefUnwindSafe for SimpleCommitObserver
impl Send for SimpleCommitObserver
impl Sync for SimpleCommitObserver
impl Unpin for SimpleCommitObserver
impl UnsafeUnpin for SimpleCommitObserver
impl UnwindSafe for SimpleCommitObserver
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