Trait packetize::Decode

source ·
pub trait Decode<N>
where Self: Sized, N: ArrayLength,
{ // Required method fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>; }

Required Methods§

source

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<CursorLen, StrLen> Decode<CursorLen> for String<StrLen>
where Const<{ StrLen::USIZE }>: IntoArrayLength<ArrayLength = StrLen>, StrLen: ArrayLength, CursorLen: ArrayLength, [(); CursorLen::USIZE]:,

source§

fn decode(read_cursor: &mut Cursor<u8, CursorLen>) -> Result<Self, ()>

source§

impl<CursorLen, VecLen> Decode<CursorLen> for Vec<u8, VecLen>
where VecLen: ArrayLength, CursorLen: ArrayLength, [(); VecLen::USIZE]:,

source§

fn decode(read_cursor: &mut Cursor<u8, CursorLen>) -> Result<Self, ()>

source§

impl<N> Decode<N> for bool
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for f32
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for f64
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for i8
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for i16
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for i32
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for i64
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for i128
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for isize
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for u8
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for u16
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for u32
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for u64
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for u128
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for usize
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

source§

impl<N> Decode<N> for Uuid
where N: ArrayLength,

source§

fn decode(read_cursor: &mut Cursor<u8, N>) -> Result<Self, ()>

Implementors§