#[repr(C)]
pub enum InstructionExecutionFlags {
None,
Ordered,
UseTransaction,
}
Expand description
Transaction execution flags defining how instructions are executed for a Proposal
Variants
None
No execution flags are specified Instructions can be executed individually, in any order, as soon as they hold_up time expires
Ordered
Instructions are executed in a specific order Note: Ordered execution is not supported in the current version The implementation requires another account type to track deleted instructions
UseTransaction
Multiple instructions can be executed as a single transaction Note: Transactions are not supported in the current version The implementation requires another account type to group instructions within a transaction
Trait Implementations
sourceimpl BorshSchema for InstructionExecutionFlags
impl BorshSchema for InstructionExecutionFlags
sourcefn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
sourcefn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
Recursively, using DFS, add type definitions required for this type. For primitive types this is an empty map. Type definition explains how to serialize/deserialize a type. Read more
sourcefn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
Helper method to add a single type definition to the map.
fn schema_container() -> BorshSchemaContainer
sourceimpl Clone for InstructionExecutionFlags
impl Clone for InstructionExecutionFlags
sourcefn clone(&self) -> InstructionExecutionFlags
fn clone(&self) -> InstructionExecutionFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InstructionExecutionFlags
impl Debug for InstructionExecutionFlags
impl StructuralPartialEq for InstructionExecutionFlags
Auto Trait Implementations
impl RefUnwindSafe for InstructionExecutionFlags
impl Send for InstructionExecutionFlags
impl Sync for InstructionExecutionFlags
impl Unpin for InstructionExecutionFlags
impl UnwindSafe for InstructionExecutionFlags
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more