pub struct InstructionParser;Trait Implementations§
Source§impl Clone for InstructionParser
impl Clone for InstructionParser
Source§fn clone(&self) -> InstructionParser
fn clone(&self) -> InstructionParser
Returns a duplicate 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 InstructionParser
impl Debug for InstructionParser
Source§impl Parser for InstructionParser
impl Parser for InstructionParser
Source§type Input = InstructionUpdate
type Input = InstructionUpdate
The input update type for this parser.
Source§type Output = ShieldProgramIx
type Output = ShieldProgramIx
The type of the parsed value produced by this parser.
Source§fn id(&self) -> Cow<'_, str>
fn id(&self) -> Cow<'_, str>
A unique ID for this parser. Used to associate the parser with its
requested prefilter data. Read more
Source§fn prefilter(&self) -> Prefilter
fn prefilter(&self) -> Prefilter
Filter data passed to Yellowstone to coarsely narrow down updates
to values parseable by this parser.
Source§async fn parse(
&self,
ix_update: &InstructionUpdate,
) -> ParseResult<Self::Output>
async fn parse( &self, ix_update: &InstructionUpdate, ) -> ParseResult<Self::Output>
Parse the given update into a parsed value.
Source§impl ProgramParser for InstructionParser
impl ProgramParser for InstructionParser
Source§fn program_id(&self) -> Pubkey
fn program_id(&self) -> Pubkey
The program ID that this parser is associated with.
impl Copy for InstructionParser
Auto Trait Implementations§
impl Freeze for InstructionParser
impl RefUnwindSafe for InstructionParser
impl Send for InstructionParser
impl Sync for InstructionParser
impl Unpin for InstructionParser
impl UnwindSafe for InstructionParser
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetPrefilter for Twhere
T: Parser,
impl<T> GetPrefilter for Twhere
T: Parser,
Source§fn prefilter(&self) -> Prefilter
fn prefilter(&self) -> Prefilter
Get the prefilter of this parser, see
Parser::prefilter.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request