pub struct ArrayDecoder<const N: usize>;Trait Implementations§
Source§impl<const N: usize> Decoder for ArrayDecoder<N>
impl<const N: usize> Decoder for ArrayDecoder<N>
Source§type Record = [u8; N]
type Record = [u8; N]
The type of records this decoder can decode.
This is also the type which can be appended to a commitlog, and so must
satisfy
Encode.Source§type Error = ArrayDecodeError
type Error = ArrayDecodeError
The type of decode errors, which must subsume
DecodeError.Source§fn decode_record<'a, R: BufReader<'a>>(
&self,
_version: u8,
_tx_offset: u64,
reader: &mut R,
) -> Result<Self::Record, Self::Error>
fn decode_record<'a, R: BufReader<'a>>( &self, _version: u8, _tx_offset: u64, reader: &mut R, ) -> Result<Self::Record, Self::Error>
Decode one
Self::Record from the given buffer. Read moreSource§fn skip_record<'a, R: BufReader<'a>>(
&self,
version: u8,
tx_offset: u64,
reader: &mut R,
) -> Result<(), Self::Error>
fn skip_record<'a, R: BufReader<'a>>( &self, version: u8, tx_offset: u64, reader: &mut R, ) -> Result<(), Self::Error>
Advance
reader past the next Self::Record, without returning it
or including it in a fold.Auto Trait Implementations§
impl<const N: usize> Freeze for ArrayDecoder<N>
impl<const N: usize> RefUnwindSafe for ArrayDecoder<N>
impl<const N: usize> Send for ArrayDecoder<N>
impl<const N: usize> Sync for ArrayDecoder<N>
impl<const N: usize> Unpin for ArrayDecoder<N>
impl<const N: usize> UnwindSafe for ArrayDecoder<N>
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> 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