Enum matterdb::generic::GenericAccess[][src]

#[non_exhaustive]pub enum GenericAccess<T> {
    Raw(T),
    Prefixed(Prefixed<T>),
    Migration(Migration<T>),
    Scratchpad(Scratchpad<T>),
}

Generic access containing any kind of accesses supported by the database.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Raw(T)

Access to the entire database.

Prefixed(Prefixed<T>)

Prefixed access to the database.

Migration(Migration<T>)

Migration within a certain namespace.

Scratchpad(Scratchpad<T>)

Scratchpad for a migration.

Implementations

impl GenericAccess<GenericRawAccess<'a>>[src]

pub fn is_mutable(&self) -> bool[src]

Checks if the underlying access is mutable.

Trait Implementations

impl<T: RawAccess> Access for GenericAccess<T>[src]

type Base = T

Raw access serving as the basis for created indexes.

impl<T: Clone> Clone for GenericAccess<T>[src]

impl<T: Debug> Debug for GenericAccess<T>[src]

impl<T: RawAccess> From<Migration<T>> for GenericAccess<T>[src]

impl<T: RawAccess> From<Prefixed<T>> for GenericAccess<T>[src]

impl<T: RawAccess> From<Scratchpad<T>> for GenericAccess<T>[src]

impl<T: RawAccess> From<T> for GenericAccess<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for GenericAccess<T> where
    T: RefUnwindSafe

impl<T> Send for GenericAccess<T> where
    T: Send

impl<T> Sync for GenericAccess<T> where
    T: Sync

impl<T> Unpin for GenericAccess<T> where
    T: Unpin

impl<T> UnwindSafe for GenericAccess<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,