pub(crate) trait RawEntryReader: Send + Sync {
// Required method
fn read(
&self,
provider: &Provider,
start_id: EntryId,
) -> Result<BoxStream<'static, Result<Entry>>>;
// Provided method
fn list_upper_bound(
&self,
_node_id: u64,
_region_id: RegionId,
) -> BoxFuture<'_, Result<Option<EntryId>, BoxedError>> { ... }
}Expand description
RawEntryReader reads Entry from the underlying LogStore and lists the WAL of another node for a bound.
Required Methods§
fn read( &self, provider: &Provider, start_id: EntryId, ) -> Result<BoxStream<'static, Result<Entry>>>
Provided Methods§
Sourcefn list_upper_bound(
&self,
_node_id: u64,
_region_id: RegionId,
) -> BoxFuture<'_, Result<Option<EntryId>, BoxedError>>
fn list_upper_bound( &self, _node_id: u64, _region_id: RegionId, ) -> BoxFuture<'_, Result<Option<EntryId>, BoxedError>>
Returns a bound at or above every entry, of any region, in the listed objects of the WAL
of node node_id, see LogStore::list_upper_bound, or None if the log store cannot list
that WAL. region_id only names the request in errors.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".