pub struct ManagedBufferNestedDecodeInput<M>where
M: ManagedTypeApi,{ /* private fields */ }
Expand description
Nested decode buffer based on a managed buffer. Uses the load/copy slice API to extract pieces of the managed buffer for deserialization.
Implementations§
Source§impl<M> ManagedBufferNestedDecodeInput<M>where
M: ManagedTypeApi,
impl<M> ManagedBufferNestedDecodeInput<M>where
M: ManagedTypeApi,
pub fn new( managed_buffer: ManagedBuffer<M>, ) -> ManagedBufferNestedDecodeInput<M>
Trait Implementations§
Source§impl<M> NestedDecodeInput for ManagedBufferNestedDecodeInput<M>where
M: ManagedTypeApi,
impl<M> NestedDecodeInput for ManagedBufferNestedDecodeInput<M>where
M: ManagedTypeApi,
Source§fn remaining_len(&self) -> usize
fn remaining_len(&self) -> usize
The remaining length of the input data.
Source§fn peek_into<H>(
&mut self,
into: &mut [u8],
h: H,
) -> Result<(), <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
fn peek_into<H>(
&mut self,
into: &mut [u8],
h: H,
) -> Result<(), <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
Read the exact number of bytes required to fill the given buffer, without consuming the underlying bytes. Read more
Source§fn read_into<H>(
&mut self,
into: &mut [u8],
h: H,
) -> Result<(), <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
fn read_into<H>(
&mut self,
into: &mut [u8],
h: H,
) -> Result<(), <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
Read & consume the exact number of bytes required to fill the given buffer. Read more
fn supports_specialized_type<T>() -> boolwhere
T: TryStaticCast,
fn read_specialized<T, C, H>( &mut self, context: C, h: H, ) -> Result<T, <H as DecodeErrorHandler>::HandledErr>
Source§fn is_depleted(&self) -> bool
fn is_depleted(&self) -> bool
True if all data from the buffer has already been used.
Source§fn read_byte<H>(
&mut self,
h: H,
) -> Result<u8, <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
fn read_byte<H>(
&mut self,
h: H,
) -> Result<u8, <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
Read a single byte from the input.
Auto Trait Implementations§
impl<M> Freeze for ManagedBufferNestedDecodeInput<M>
impl<M> RefUnwindSafe for ManagedBufferNestedDecodeInput<M>
impl<M> Send for ManagedBufferNestedDecodeInput<M>
impl<M> Sync for ManagedBufferNestedDecodeInput<M>
impl<M> Unpin for ManagedBufferNestedDecodeInput<M>
impl<M> UnwindSafe for ManagedBufferNestedDecodeInput<M>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
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