pub struct AsyncTransaction { /* private fields */ }Expand description
Async transaction handler
Implementations§
Source§impl AsyncTransaction
impl AsyncTransaction
Sourcepub fn add_operation(&mut self, operation: String)
pub fn add_operation(&mut self, operation: String)
Add operation to transaction
Sourcepub fn operation_count(&self) -> usize
pub fn operation_count(&self) -> usize
Get operation count
Sourcepub fn is_committed(&self) -> bool
pub fn is_committed(&self) -> bool
Check if committed
Trait Implementations§
Source§impl Default for AsyncTransaction
impl Default for AsyncTransaction
Source§impl From<AsyncTransaction> for JsValue
impl From<AsyncTransaction> for JsValue
Source§fn from(value: AsyncTransaction) -> Self
fn from(value: AsyncTransaction) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for AsyncTransaction
impl FromWasmAbi for AsyncTransaction
Source§impl IntoWasmAbi for AsyncTransaction
impl IntoWasmAbi for AsyncTransaction
Source§impl OptionFromWasmAbi for AsyncTransaction
impl OptionFromWasmAbi for AsyncTransaction
Source§impl OptionIntoWasmAbi for AsyncTransaction
impl OptionIntoWasmAbi for AsyncTransaction
Source§impl RefFromWasmAbi for AsyncTransaction
impl RefFromWasmAbi for AsyncTransaction
Source§type Anchor = RcRef<AsyncTransaction>
type Anchor = RcRef<AsyncTransaction>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for AsyncTransaction
impl RefMutFromWasmAbi for AsyncTransaction
Source§impl TryFromJsValue for AsyncTransaction
impl TryFromJsValue for AsyncTransaction
Source§impl VectorFromWasmAbi for AsyncTransaction
impl VectorFromWasmAbi for AsyncTransaction
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[AsyncTransaction]>
Source§impl VectorIntoWasmAbi for AsyncTransaction
impl VectorIntoWasmAbi for AsyncTransaction
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[AsyncTransaction]>) -> Self::Abi
Source§impl WasmDescribeVector for AsyncTransaction
impl WasmDescribeVector for AsyncTransaction
impl SupportsConstructor for AsyncTransaction
impl SupportsInstanceProperty for AsyncTransaction
impl SupportsStaticProperty for AsyncTransaction
Auto Trait Implementations§
impl Freeze for AsyncTransaction
impl RefUnwindSafe for AsyncTransaction
impl Send for AsyncTransaction
impl Sync for AsyncTransaction
impl Unpin for AsyncTransaction
impl UnwindSafe for AsyncTransaction
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.