pub trait FallibleTableRowVersionStore {
type Error;
// Required methods
fn try_get_table_row_by_logical_id(
&self,
collection: &str,
logical_id: EntityId,
) -> Result<Option<UnifiedEntity>, Self::Error>;
fn try_for_each_table_row_version(
&self,
collection: &str,
logical_id: EntityId,
visit: impl FnMut(&UnifiedEntity) -> bool,
) -> Result<(), Self::Error>;
// Provided method
fn try_live_table_row_head(
&self,
_collection: &str,
_logical_id: EntityId,
) -> Result<Option<UnifiedEntity>, Self::Error> { ... }
}Expand description
Fallible version access streams candidates instead of retaining a history Vec. Hosts supply only versions of the requested collection/logical identity.
Required Associated Types§
Required Methods§
fn try_get_table_row_by_logical_id( &self, collection: &str, logical_id: EntityId, ) -> Result<Option<UnifiedEntity>, Self::Error>
fn try_for_each_table_row_version( &self, collection: &str, logical_id: EntityId, visit: impl FnMut(&UnifiedEntity) -> bool, ) -> Result<(), Self::Error>
Provided Methods§
Sourcefn try_live_table_row_head(
&self,
_collection: &str,
_logical_id: EntityId,
) -> Result<Option<UnifiedEntity>, Self::Error>
fn try_live_table_row_head( &self, _collection: &str, _logical_id: EntityId, ) -> Result<Option<UnifiedEntity>, Self::Error>
The live head of logical_id’s version chain (xmax == 0), when the
host can name it without walking the collection and no other version
can be visible alongside it. None always falls back to the walk.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".