pub struct TxMerkleNodeDecoder(/* private fields */);Expand description
The decoder for the TxMerkleNode type.
Implementations§
Source§impl TxMerkleNodeDecoder
impl TxMerkleNodeDecoder
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Constructs a new TxMerkleNode decoder.
Trait Implementations§
Source§impl Decoder for TxMerkleNodeDecoder
impl Decoder for TxMerkleNodeDecoder
Source§type Output = TxMerkleNode
type Output = TxMerkleNode
The type that this decoder produces when decoding is complete.
Source§type Error = TxMerkleNodeDecoderError
type Error = TxMerkleNodeDecoderError
The error type that this decoder can produce.
Source§fn push_bytes(&mut self, bytes: &mut &[u8]) -> Result<bool, Self::Error>
fn push_bytes(&mut self, bytes: &mut &[u8]) -> Result<bool, Self::Error>
Push 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>
Complete the decoding process and return 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 TxMerkleNodeDecoder
impl RefUnwindSafe for TxMerkleNodeDecoder
impl Send for TxMerkleNodeDecoder
impl Sync for TxMerkleNodeDecoder
impl Unpin for TxMerkleNodeDecoder
impl UnsafeUnpin for TxMerkleNodeDecoder
impl UnwindSafe for TxMerkleNodeDecoder
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