pub enum TransactionType {
Host,
Runtime,
}Expand description
Informs Extension about what type of transaction is started, committed or rolled back.
Variants§
Implementations§
Source§impl TransactionType
impl TransactionType
Sourcepub fn is_host(self) -> bool
pub fn is_host(self) -> bool
Is self set to Self::Host.
Sourcepub fn is_runtime(self) -> bool
pub fn is_runtime(self) -> bool
Is self set to Self::Runtime.
Trait Implementations§
Source§impl Clone for TransactionType
impl Clone for TransactionType
impl Copy for TransactionType
Source§impl Debug for TransactionType
impl Debug for TransactionType
impl Eq for TransactionType
Source§impl PartialEq for TransactionType
impl PartialEq for TransactionType
impl StructuralPartialEq for TransactionType
Auto Trait Implementations§
impl Forget for TransactionType
impl Freeze for TransactionType
impl Move for TransactionType
impl RefUnwindSafe for TransactionType
impl Send for TransactionType
impl Sync for TransactionType
impl Unpin for TransactionType
impl UnsafeUnpin for TransactionType
impl UnwindSafe for TransactionType
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