pub struct OwnedDataDecoder<'a>(/* private fields */);
Expand description
A data decoder.
Implementations§
Trait Implementations§
Source§impl Decoder for OwnedDataDecoder<'_>
impl Decoder for OwnedDataDecoder<'_>
Source§fn decode_account<V>(&self, _visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
fn decode_account<V>(&self, _visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
Hint that the visitor is expecting an
AccountInfo
.Source§fn decode_transaction<V>(&self, _visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
fn decode_transaction<V>(&self, _visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
Hint that the visitor is expecting a
Transaction
.Source§fn decode_anchor_cpi_events<V>(
&self,
_visitor: V,
) -> Result<V::Value, DecodeError>where
V: Visitor,
fn decode_anchor_cpi_events<V>(
&self,
_visitor: V,
) -> Result<V::Value, DecodeError>where
V: Visitor,
Hint that the visitor is expecting
AnchorCPIEvent
list.Source§fn decode_owned_data<V>(&self, visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
fn decode_owned_data<V>(&self, visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
Hint that the visitor is expecting a
OwnedData
. Read moreSource§fn decode_bytes<V>(&self, visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
fn decode_bytes<V>(&self, visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
Hint that the visitor is expecting a
Data
. Read moreAuto Trait Implementations§
impl<'a> Freeze for OwnedDataDecoder<'a>
impl<'a> RefUnwindSafe for OwnedDataDecoder<'a>
impl<'a> Send for OwnedDataDecoder<'a>
impl<'a> Sync for OwnedDataDecoder<'a>
impl<'a> Unpin for OwnedDataDecoder<'a>
impl<'a> UnwindSafe for OwnedDataDecoder<'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