pub struct BlockTimeDecoder(/* private fields */);Expand description
The decoder for the BlockTime type.
Implementations§
Source§impl BlockTimeDecoder
impl BlockTimeDecoder
Sourcepub const fn new() -> BlockTimeDecoder
pub const fn new() -> BlockTimeDecoder
Constructs a new BlockTime decoder.
Trait Implementations§
Source§impl Clone for BlockTimeDecoder
impl Clone for BlockTimeDecoder
Source§fn clone(&self) -> BlockTimeDecoder
fn clone(&self) -> BlockTimeDecoder
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 BlockTimeDecoder
impl Debug for BlockTimeDecoder
Source§impl Decoder for BlockTimeDecoder
impl Decoder for BlockTimeDecoder
Source§type Error = BlockTimeDecoderError
type Error = BlockTimeDecoderError
The error type that this decoder can produce.
Source§fn push_bytes(
&mut self,
bytes: &mut &[u8],
) -> Result<DecoderStatus, <BlockTimeDecoder as Decoder>::Error>
fn push_bytes( &mut self, bytes: &mut &[u8], ) -> Result<DecoderStatus, <BlockTimeDecoder as Decoder>::Error>
Pushes bytes into the decoder, consuming as much as possible. Read more
Source§fn end(
self,
) -> Result<<BlockTimeDecoder as Decoder>::Output, <BlockTimeDecoder as Decoder>::Error>
fn end( self, ) -> Result<<BlockTimeDecoder as Decoder>::Output, <BlockTimeDecoder as Decoder>::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
Source§impl Default for BlockTimeDecoder
impl Default for BlockTimeDecoder
Source§fn default() -> BlockTimeDecoder
fn default() -> BlockTimeDecoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BlockTimeDecoder
impl RefUnwindSafe for BlockTimeDecoder
impl Send for BlockTimeDecoder
impl Sync for BlockTimeDecoder
impl Unpin for BlockTimeDecoder
impl UnsafeUnpin for BlockTimeDecoder
impl UnwindSafe for BlockTimeDecoder
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