[−][src]Enum exonum_merkledb::generic::GenericRawAccess
Container for an arbitrary raw access. For Fork
s and Snapshot
s, this type provides
both owned and borrowed variants.
GenericRawAccess
implements RawAccess
and RawAccessMut
traits. The latter
means that the mutable methods on indexes will panic in the run time if an immutable access
(such as a Snapshot
) is used as the base. The caller is advised to check
mutability in advance with the help of is_mutable()
.
Variants (Non-exhaustive)
Snapshot(&'a dyn Snapshot)
Borrowed snapshot.
Owned snapshot.
Fork(&'a Fork)
Borrowed fork.
Owned fork.
ReadonlyFork(ReadonlyFork<'a>)
Readonly fork.
OwnedReadonlyFork(OwnedReadonlyFork)
Owned readonly fork.
Methods
impl<'_> GenericRawAccess<'_>
[src]
pub fn is_mutable(&self) -> bool
[src]
Checks if the underlying access is mutable.
Trait Implementations
impl<'_> AsReadonly for GenericRawAccess<'_>
[src]
impl<'a> Clone for GenericRawAccess<'a>
[src]
fn clone(&self) -> GenericRawAccess<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for GenericRawAccess<'a>
[src]
impl<'a> From<&'a (dyn Snapshot + 'static)> for GenericRawAccess<'a>
[src]
impl<'a> From<&'a Fork> for GenericRawAccess<'a>
[src]
impl<'_> From<Box<dyn Snapshot + 'static>> for GenericRawAccess<'_>
[src]
impl<'_> From<Fork> for GenericRawAccess<'_>
[src]
impl<'_> From<OwnedReadonlyFork> for GenericRawAccess<'_>
[src]
fn from(ro_fork: OwnedReadonlyFork) -> Self
[src]
impl<'a> From<ReadonlyFork<'a>> for GenericRawAccess<'a>
[src]
fn from(ro_fork: ReadonlyFork<'a>) -> Self
[src]
impl<'a> RawAccess for GenericRawAccess<'a>
[src]
type Changes = GenericChanges<'a>
Type of the changes()
that will be applied to the database.
fn snapshot(&self) -> &dyn Snapshot
[src]
fn changes(&self, address: &ResolvedAddress) -> Self::Changes
[src]
impl<'_> RawAccessMut for GenericRawAccess<'_>
[src]
Will panic in runtime if mutable methods are called on an inappropriate underlying access.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GenericRawAccess<'a>
impl<'a> !Send for GenericRawAccess<'a>
impl<'a> !Sync for GenericRawAccess<'a>
impl<'a> Unpin for GenericRawAccess<'a>
impl<'a> !UnwindSafe for GenericRawAccess<'a>
Blanket Implementations
impl<T> Access for T where
T: RawAccess,
[src]
T: RawAccess,
type Base = T
Raw access serving as the basis for created indexes.
fn get_index_metadata(
Self,
IndexAddress
) -> Result<Option<IndexMetadata<Vec<u8>>>, AccessError>
[src]
Self,
IndexAddress
) -> Result<Option<IndexMetadata<Vec<u8>>>, AccessError>
fn get_or_create_view(
Self,
IndexAddress,
IndexType
) -> Result<ViewWithMetadata<<T as Access>::Base>, AccessError>
[src]
Self,
IndexAddress,
IndexType
) -> Result<ViewWithMetadata<<T as Access>::Base>, AccessError>
fn group_keys<K>(Self, IndexAddress) -> GroupKeys<<T as Access>::Base, K> where
K: BinaryKey + ?Sized,
<T as Access>::Base: AsReadonly,
<<T as Access>::Base as AsReadonly>::Readonly == <T as Access>::Base,
[src]
K: BinaryKey + ?Sized,
<T as Access>::Base: AsReadonly,
<<T as Access>::Base as AsReadonly>::Readonly == <T as Access>::Base,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,