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