[][src]Struct treehouse::TransactionalStore

pub struct TransactionalStore<'a, T> { /* fields omitted */ }

Implementations

impl<'a, T: Queryable + Serialize + DeserializeOwned> TransactionalStore<'a, T>[src]

pub fn create(
    &self,
    id: u64,
    inner: &T
) -> Result<u64, ConflictableTransactionError<Error>>
[src]

pub fn create_multi(
    &self,
    ids: Vec<u64>,
    inners: &[T]
) -> Result<Vec<u64>, ConflictableTransactionError<Error>>
[src]

pub fn update(
    &self,
    object: &Object<T>
) -> Result<(), ConflictableTransactionError<Error>>
[src]

pub fn update_multi(
    &self,
    objects: &[Object<T>]
) -> Result<(), ConflictableTransactionError<Error>>
[src]

pub fn delete(&self, id: u64) -> Result<(), ConflictableTransactionError<Error>>[src]

pub fn delete_multi(
    &self,
    ids: &[u64]
) -> Result<(), ConflictableTransactionError<Error>>
[src]

pub fn find(
    &self,
    id: u64
) -> Result<Option<Object<T>>, ConflictableTransactionError<Error>>
[src]

pub fn filter<Q: TransactionalQuery<TransactionalTree>>(
    &self,
    query: Q
) -> Result<TransactionalResults<T>, ConflictableTransactionError<Error>>
[src]

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for TransactionalStore<'a, T>

impl<'a, T> !Send for TransactionalStore<'a, T>

impl<'a, T> !Sync for TransactionalStore<'a, T>

impl<'a, T> Unpin for TransactionalStore<'a, T>

impl<'a, T> !UnwindSafe for TransactionalStore<'a, T>

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