pub enum LightSystemInstruction {
Invoke,
InvokeCpi,
InvokeCpiWithReadOnly,
InvokeCpiWithAccountInfo,
}Expand description
Light System Program instructions.
The Light System Program uses 8-byte discriminators for compressed account operations. Each instruction has an explicit discriminator attribute.
Variants§
Invoke
Direct invocation of Light System - creates/modifies compressed accounts. Has 4-byte Anchor vec length prefix after discriminator.
InvokeCpi
CPI invocation from another program. Has 4-byte Anchor vec length prefix after discriminator.
InvokeCpiWithReadOnly
CPI with read-only compressed accounts (V2 account layout). Uses pure borsh serialization (no 4-byte prefix). Note: V2 instructions have no log_program account.
InvokeCpiWithAccountInfo
CPI with full account info for each compressed account (V2 account layout). Uses pure borsh serialization (no 4-byte prefix). Note: V2 instructions have no log_program account.
Auto Trait Implementations§
impl Freeze for LightSystemInstruction
impl RefUnwindSafe for LightSystemInstruction
impl Send for LightSystemInstruction
impl Sync for LightSystemInstruction
impl Unpin for LightSystemInstruction
impl UnwindSafe for LightSystemInstruction
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more