pub struct InstrEffects {
pub result: i32,
pub custom_err: u32,
pub modified_accounts: Vec<AcctState>,
pub cu_avail: u64,
pub return_data: Vec<u8>,
}
Expand description
The results of executing an InstrContext.
Fields§
§result: i32
result is zero if the instruction executed succesfully. Otherwise, a non-zero error code. Error codes are not relevant to consensus.
custom_err: u32
Some error cases additionally have a custom error code. Unlike the expected_result, this is stable across clients.
modified_accounts: Vec<AcctState>
Copies of accounts that were changed. May be in an arbitrary order. The pubkey of each account is unique in this list. Each account address modified here must also be in the InstrContext.
cu_avail: u64
§return_data: Vec<u8>
Instruction return data.
Trait Implementations§
Source§impl Clone for InstrEffects
impl Clone for InstrEffects
Source§fn clone(&self) -> InstrEffects
fn clone(&self) -> InstrEffects
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 moreSource§impl Debug for InstrEffects
impl Debug for InstrEffects
Source§impl Default for InstrEffects
impl Default for InstrEffects
Source§impl Message for InstrEffects
impl Message for InstrEffects
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for InstrEffects
impl PartialEq for InstrEffects
impl StructuralPartialEq for InstrEffects
Auto Trait Implementations§
impl Freeze for InstrEffects
impl RefUnwindSafe for InstrEffects
impl Send for InstrEffects
impl Sync for InstrEffects
impl Unpin for InstrEffects
impl UnwindSafe for InstrEffects
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