pub struct FiberState {
pub thread: Pubkey,
pub fiber_index: u8,
pub compiled_instruction: Vec<u8>,
pub last_executed: i64,
pub exec_count: u64,
pub priority_fee: u64,
}Expand description
Represents a single fiber (instruction) in a thread’s execution sequence.
Fields§
§thread: PubkeyThe thread this fiber belongs to
fiber_index: u8The index of this fiber in the thread’s execution sequence
compiled_instruction: Vec<u8>The compiled instruction data
last_executed: i64When this fiber was last executed
exec_count: u64Total number of executions
priority_fee: u64Priority fee in microlamports for compute unit price (0 = no priority fee)
Implementations§
Trait Implementations§
Source§impl AccountDeserialize for FiberState
impl AccountDeserialize for FiberState
Source§fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a
Mint account into a token
Account.Source§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
Deserializes account data without checking the account discriminator.
This should only be used on account initialization, when the bytes of
the account are zeroed.
Source§impl AccountSerialize for FiberState
impl AccountSerialize for FiberState
Source§impl BorshDeserialize for FiberStatewhere
Pubkey: BorshDeserialize,
u8: BorshDeserialize,
Vec<u8>: BorshDeserialize,
i64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for FiberStatewhere
Pubkey: BorshDeserialize,
u8: BorshDeserialize,
Vec<u8>: BorshDeserialize,
i64: BorshDeserialize,
u64: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for FiberStatewhere
Pubkey: BorshSerialize,
u8: BorshSerialize,
Vec<u8>: BorshSerialize,
i64: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for FiberStatewhere
Pubkey: BorshSerialize,
u8: BorshSerialize,
Vec<u8>: BorshSerialize,
i64: BorshSerialize,
u64: BorshSerialize,
Source§impl Clone for FiberState
impl Clone for FiberState
Source§fn clone(&self) -> FiberState
fn clone(&self) -> FiberState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FiberState
impl Debug for FiberState
Source§impl Discriminator for FiberState
impl Discriminator for FiberState
Source§const DISCRIMINATOR: &'static [u8]
const DISCRIMINATOR: &'static [u8]
Discriminator slice. Read more
Source§impl FiberInstructionProcessor for FiberState
impl FiberInstructionProcessor for FiberState
Source§fn get_instruction(&self, executor: &Pubkey) -> Result<Instruction>
fn get_instruction(&self, executor: &Pubkey) -> Result<Instruction>
Get the decompiled instruction from the fiber’s compiled data,
replacing PAYER_PUBKEY with the provided executor
Source§impl Space for FiberState
impl Space for FiberState
const INIT_SPACE: usize = 1_085usize
Auto Trait Implementations§
impl Freeze for FiberState
impl RefUnwindSafe for FiberState
impl Send for FiberState
impl Sync for FiberState
impl Unpin for FiberState
impl UnwindSafe for FiberState
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)