pub struct AccessCPIEvents<'a> { /* private fields */ }
Expand description
Access CPI Events.
Implementations§
Source§impl<'a> AccessCPIEvents<'a>
impl<'a> AccessCPIEvents<'a>
Sourcepub fn new(
signature: &'a Signature,
slot_index: &'a SlotAndIndex,
events: &'a [CPIEvent],
) -> Self
pub fn new( signature: &'a Signature, slot_index: &'a SlotAndIndex, events: &'a [CPIEvent], ) -> Self
Create a new access for CPI Events.
Trait Implementations§
Source§impl<'a> AnchorCPIEventsAccess<'a> for AccessCPIEvents<'a>
impl<'a> AnchorCPIEventsAccess<'a> for AccessCPIEvents<'a>
Source§fn slot(&self) -> Result<u64, DecodeError>
fn slot(&self) -> Result<u64, DecodeError>
Get the slot of the transaction where the events were generated.
Source§fn index(&self) -> Result<Option<usize>, DecodeError>
fn index(&self) -> Result<Option<usize>, DecodeError>
Get the index in the block of the transaction where the events were generated. Read more
Source§fn signature(&self) -> Result<&Signature, DecodeError>
fn signature(&self) -> Result<&Signature, DecodeError>
Get the signature of the transaction where the events were generated.
Source§fn next_event<T>(&mut self) -> Result<Option<T>, DecodeError>where
T: Decode,
fn next_event<T>(&mut self) -> Result<Option<T>, DecodeError>where
T: Decode,
Decode next event.
Auto Trait Implementations§
impl<'a> Freeze for AccessCPIEvents<'a>
impl<'a> RefUnwindSafe for AccessCPIEvents<'a>
impl<'a> Send for AccessCPIEvents<'a>
impl<'a> Sync for AccessCPIEvents<'a>
impl<'a> Unpin for AccessCPIEvents<'a>
impl<'a> UnwindSafe for AccessCPIEvents<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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