pub enum InstructionEffectKind {
Reads,
Writes,
CreatesAccount,
ReallocatesAccount,
ClosesAccount,
RequiresSigner,
EmitsReceipt,
InvokesCpi,
}Expand description
Semantic effect an instruction has on accounts or emitted artifacts.
Variants§
Reads
Reads an account without mutation.
Writes
Mutates account data or lamports in place.
CreatesAccount
Creates a fresh account.
ReallocatesAccount
Reallocates account data.
ClosesAccount
Closes an account.
RequiresSigner
Requires a signer for authorization.
EmitsReceipt
Emits a receipt or event that clients should expect.
InvokesCpi
Performs a cross-program invocation.
Implementations§
Trait Implementations§
Source§impl Clone for InstructionEffectKind
impl Clone for InstructionEffectKind
Source§fn clone(&self) -> InstructionEffectKind
fn clone(&self) -> InstructionEffectKind
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 moreSource§impl Debug for InstructionEffectKind
impl Debug for InstructionEffectKind
Source§impl Display for InstructionEffectKind
impl Display for InstructionEffectKind
Source§impl PartialEq for InstructionEffectKind
impl PartialEq for InstructionEffectKind
Source§fn eq(&self, other: &InstructionEffectKind) -> bool
fn eq(&self, other: &InstructionEffectKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InstructionEffectKind
impl Eq for InstructionEffectKind
impl StructuralPartialEq for InstructionEffectKind
Auto Trait Implementations§
impl Freeze for InstructionEffectKind
impl RefUnwindSafe for InstructionEffectKind
impl Send for InstructionEffectKind
impl Sync for InstructionEffectKind
impl Unpin for InstructionEffectKind
impl UnsafeUnpin for InstructionEffectKind
impl UnwindSafe for InstructionEffectKind
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