Trait matterdb::access::RawAccess [−][src]
Allows to read data from the database. The data consists of a snapshot and changes relative to this snapshot. Depending on the implementation, the changes can be empty, immutable or mutable.
This trait is rarely needs to be used directly; Access
is a more high-level trait
encompassing access to database. In particular, using snapshot()
method to convert
the implementation into &dyn Snapshot
is logically incorrect, because the snapshot
may not reflect the most recent state of RawAccess
.
Associated Types
Loading content...Required methods
fn snapshot(&self) -> &dyn Snapshot
[src]
Reference to a Snapshot
. This is the base relative to which the changes are defined.
fn changes(&self, address: &ResolvedAddress) -> Self::Changes
[src]
Returns changes related to specific address
compared to the snapshot()
.