[−][src]Struct treehouse::TransactionalStore
Implementations
impl<'a, T: Queryable + Serialize + DeserializeOwned> TransactionalStore<'a, T>
[src]
pub fn create(
&self,
id: u64,
inner: &T
) -> Result<u64, ConflictableTransactionError<Error>>
[src]
&self,
id: u64,
inner: &T
) -> Result<u64, ConflictableTransactionError<Error>>
pub fn create_multi(
&self,
ids: Vec<u64>,
inners: &[T]
) -> Result<Vec<u64>, ConflictableTransactionError<Error>>
[src]
&self,
ids: Vec<u64>,
inners: &[T]
) -> Result<Vec<u64>, ConflictableTransactionError<Error>>
pub fn update(
&self,
object: &Object<T>
) -> Result<(), ConflictableTransactionError<Error>>
[src]
&self,
object: &Object<T>
) -> Result<(), ConflictableTransactionError<Error>>
pub fn update_multi(
&self,
objects: &[Object<T>]
) -> Result<(), ConflictableTransactionError<Error>>
[src]
&self,
objects: &[Object<T>]
) -> Result<(), ConflictableTransactionError<Error>>
pub fn delete(&self, id: u64) -> Result<(), ConflictableTransactionError<Error>>
[src]
pub fn delete_multi(
&self,
ids: &[u64]
) -> Result<(), ConflictableTransactionError<Error>>
[src]
&self,
ids: &[u64]
) -> Result<(), ConflictableTransactionError<Error>>
pub fn find(
&self,
id: u64
) -> Result<Option<Object<T>>, ConflictableTransactionError<Error>>
[src]
&self,
id: u64
) -> Result<Option<Object<T>>, ConflictableTransactionError<Error>>
pub fn filter<Q: TransactionalQuery<TransactionalTree>>(
&self,
query: Q
) -> Result<TransactionalResults<T>, ConflictableTransactionError<Error>>
[src]
&self,
query: Q
) -> Result<TransactionalResults<T>, ConflictableTransactionError<Error>>
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]
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, 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>,