Enum rshooks_api::api::TxnTypeFlags
source · #[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 copy of the value. Read more
1.0.0 · 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)