pub trait SyncLogView: Send + Sync {
// Required method
fn len(&self) -> Result<usize, SyncLogViewError>;
// Provided method
fn is_empty(&self) -> Result<bool, SyncLogViewError> { ... }
}Expand description
Read-only synchronization-log metrics exposed to the HTTP host.
Required Methods§
Sourcefn len(&self) -> Result<usize, SyncLogViewError>
fn len(&self) -> Result<usize, SyncLogViewError>
Returns the number of visible replication records.
Provided Methods§
Sourcefn is_empty(&self) -> Result<bool, SyncLogViewError>
fn is_empty(&self) -> Result<bool, SyncLogViewError>
Reports whether no replication records are visible.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".