pub enum RexProcessorInstruction {
Report {
rex_id: RexId,
updates: Vec<RexUpdate>,
},
}Expand description
Instructions supported by the REX Processor program. Made to report rex updates from validators.
Variants§
Report
Report rex updates from validators
Implementations§
Source§impl RexProcessorInstruction
impl RexProcessorInstruction
Sourcepub fn report(
payer: Pubkey,
rex_id: RexId,
updates: Vec<RexUpdate>,
) -> Instruction
pub fn report( payer: Pubkey, rex_id: RexId, updates: Vec<RexUpdate>, ) -> Instruction
Creates an instruction for rex reporting.
This function creates an instruction that will report an rex update and emit an event that subscribers can listen to.
§Arguments
payer- The public key of the payerrex_id- The ID of the rexupdates- A vector of rex updates
§Returns
An instruction that stores rex data in a PDA and emits an event. Subscribers can listen to the instance-specific topic to receive notifications when rex reports are stored.
§Accounts
[0]- Payer account (signer, writable)[1]- Report PDA account (writable)[2]- Event PDA account (writable)[3]- System program (readonly)
Trait Implementations§
Source§impl Clone for RexProcessorInstruction
impl Clone for RexProcessorInstruction
Source§fn clone(&self) -> RexProcessorInstruction
fn clone(&self) -> RexProcessorInstruction
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 RexProcessorInstruction
impl Debug for RexProcessorInstruction
Source§impl<'de> Deserialize<'de> for RexProcessorInstruction
impl<'de> Deserialize<'de> for RexProcessorInstruction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RexProcessorInstruction
impl PartialEq for RexProcessorInstruction
Source§fn eq(&self, other: &RexProcessorInstruction) -> bool
fn eq(&self, other: &RexProcessorInstruction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RexProcessorInstruction
impl Serialize for RexProcessorInstruction
impl StructuralPartialEq for RexProcessorInstruction
Auto Trait Implementations§
impl Freeze for RexProcessorInstruction
impl RefUnwindSafe for RexProcessorInstruction
impl Send for RexProcessorInstruction
impl Sync for RexProcessorInstruction
impl Unpin for RexProcessorInstruction
impl UnsafeUnpin for RexProcessorInstruction
impl UnwindSafe for RexProcessorInstruction
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