[][src]Struct schemadb::SchemaBatch

pub struct SchemaBatch { /* fields omitted */ }

SchemaBatch holds a collection of updates that can be applied to a DB atomically. The updates will be applied in the order in which they are added to the SchemaBatch.


impl SchemaBatch[src]

pub fn new() -> Self[src]

Creates an empty batch.

pub fn put<S: Schema>(&mut self, key: &S::Key, value: &S::Value) -> Result<()>[src]

Adds an insert/update operation to the batch.

pub fn delete<S: Schema>(&mut self, key: &S::Key) -> Result<()>[src]

Adds a delete operation to the batch.

Trait Implementations

impl Debug for SchemaBatch[src]

impl Default for SchemaBatch[src]

Auto Trait Implementations

impl RefUnwindSafe for SchemaBatch

impl Send for SchemaBatch

impl Sync for SchemaBatch

impl Unpin for SchemaBatch

impl UnwindSafe for SchemaBatch

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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>,