pub struct Trx { /* private fields */ }Implementations§
Source§impl Trx
impl Trx
pub async fn get<R>(&self, request: R) -> Result<R::Output>where
R: TrxRead,
pub fn create<T>(&self, doc: T) -> Result<DocHandle<T>>where
T: Document,
pub fn commit<Out, Cancel>(self, out: Out) -> Result<TrxControl<Out, Cancel>>
pub fn cancel<Out, Cancel>( self, reason: Cancel, ) -> Result<TrxControl<Out, Cancel>>
Auto Trait Implementations§
impl Freeze for Trx
impl RefUnwindSafe for Trx
impl Send for Trx
impl Sync for Trx
impl Unpin for Trx
impl UnsafeUnpin for Trx
impl UnwindSafe for Trx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more