#[repr(u32)]pub enum TxnTypeFlags {
OriginatingTxn = 0,
EmittingTxnIfEmitFailure = 1,
}Expand description
Flags for otxn_id
If 0:
Write the canonical hash of the originating transaction.\
If 1 AND the originating transaction is an EMIT_FAILURE:
Write the canonical hash of the emitting transaction.\
Variants§
OriginatingTxn = 0
Write the canonical hash of the originating transaction.
EmittingTxnIfEmitFailure = 1
Write the canonical hash of the emitting transaction.
Trait Implementations§
Source§impl Clone for TxnTypeFlags
impl Clone for TxnTypeFlags
Source§fn clone(&self) -> TxnTypeFlags
fn clone(&self) -> TxnTypeFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TxnTypeFlags
Auto Trait Implementations§
impl Freeze for TxnTypeFlags
impl RefUnwindSafe for TxnTypeFlags
impl Send for TxnTypeFlags
impl Sync for TxnTypeFlags
impl Unpin for TxnTypeFlags
impl UnsafeUnpin for TxnTypeFlags
impl UnwindSafe for TxnTypeFlags
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