pub struct TransactionDecoder { /* private fields */ }Expand description
The decoder for the Transaction type.
Implementations§
Source§impl TransactionDecoder
impl TransactionDecoder
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Constructs a new TransactionDecoder.
Trait Implementations§
Source§impl Clone for TransactionDecoder
impl Clone for TransactionDecoder
Source§fn clone(&self) -> TransactionDecoder
fn clone(&self) -> TransactionDecoder
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 TransactionDecoder
impl Debug for TransactionDecoder
Source§impl Decoder for TransactionDecoder
Available on crate feature alloc only.
impl Decoder for TransactionDecoder
Available on crate feature
alloc only.Source§type Output = Transaction
type Output = Transaction
The type that this decoder produces when decoding is complete.
Source§type Error = TransactionDecoderError
type Error = TransactionDecoderError
The error type that this decoder can produce.
Source§fn push_bytes(
&mut self,
bytes: &mut &[u8],
) -> Result<DecoderStatus, Self::Error>
fn push_bytes( &mut self, bytes: &mut &[u8], ) -> Result<DecoderStatus, Self::Error>
Pushes bytes into the decoder, consuming as much as possible. Read more
Source§fn end(self) -> Result<Self::Output, Self::Error>
fn end(self) -> Result<Self::Output, Self::Error>
Completes the decoding process and returns the final result. Read more
Source§fn read_limit(&self) -> usize
fn read_limit(&self) -> usize
Returns the maximum number of bytes this decoder can consume without over-reading. Read more
Auto Trait Implementations§
impl Freeze for TransactionDecoder
impl RefUnwindSafe for TransactionDecoder
impl Send for TransactionDecoder
impl Sync for TransactionDecoder
impl Unpin for TransactionDecoder
impl UnsafeUnpin for TransactionDecoder
impl UnwindSafe for TransactionDecoder
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