Struct ReplicaObserver
pub struct ReplicaObserver { /* private fields */ }Expand description
Observe protocol progress and successful TCP application bytes on this member. Byte counts include frame headers, retransmissions and heartbeats.
Implementations§
§impl ReplicaObserver
impl ReplicaObserver
pub fn enable_timings(&self)
pub fn enable_timings(&self)
Enable per-member measurements. The normal protocol does not read a clock on these paths until a consumer requests timings.
pub fn timings(&self) -> BTreeMap<&'static str, StageDistribution>
pub async fn wait_stopped(&mut self)
pub async fn wait_stopped(&mut self)
Wait for the protocol to stop, for example after a disk error.
pub async fn changed(&mut self) -> bool
pub async fn changed(&mut self) -> bool
Waits until the role, view, readiness or stop state changes (the progress fields change without notice). False once the node is gone.
pub fn snapshot(&self) -> (NodeStatus, u64, u64)
Trait Implementations§
Auto Trait Implementations§
impl Forget for ReplicaObserver
impl Freeze for ReplicaObserver
impl Move for ReplicaObserver
impl RefUnwindSafe for ReplicaObserver
impl Send for ReplicaObserver
impl Sync for ReplicaObserver
impl Unpin for ReplicaObserver
impl UnsafeUnpin for ReplicaObserver
impl UnwindSafe for ReplicaObserver
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