Enum spinel_pack::SpinelDataWlen
source · pub enum SpinelDataWlen {}
Expand description
Marker type used to specify data fields that are prepended with its length.
This type is necessary because [u8]
is already defined to assume the
remaining length of the buffer.
This type has no size and is used only with the TryPackAs
/TryUnpackAs
traits
and in the base type for TryUnpack
/TryOwnedUnpack
.
Trait Implementations§
source§impl Debug for SpinelDataWlen
impl Debug for SpinelDataWlen
source§impl<T> TryPackAs<SpinelDataWlen> for &[T]
impl<T> TryPackAs<SpinelDataWlen> for &[T]
source§impl TryPackAs<SpinelDataWlen> for ()
impl TryPackAs<SpinelDataWlen> for ()
source§impl TryPackAs<SpinelDataWlen> for EUI48
impl TryPackAs<SpinelDataWlen> for EUI48
source§impl TryPackAs<SpinelDataWlen> for EUI64
impl TryPackAs<SpinelDataWlen> for EUI64
source§impl TryPackAs<SpinelDataWlen> for Ipv6Addr
impl TryPackAs<SpinelDataWlen> for Ipv6Addr
source§impl<T> TryPackAs<SpinelDataWlen> for Vec<T>
impl<T> TryPackAs<SpinelDataWlen> for Vec<T>
source§impl TryPackAs<SpinelDataWlen> for bool
impl TryPackAs<SpinelDataWlen> for bool
source§impl TryPackAs<SpinelDataWlen> for i16
impl TryPackAs<SpinelDataWlen> for i16
source§impl TryPackAs<SpinelDataWlen> for i32
impl TryPackAs<SpinelDataWlen> for i32
source§impl TryPackAs<SpinelDataWlen> for i64
impl TryPackAs<SpinelDataWlen> for i64
source§impl TryPackAs<SpinelDataWlen> for i8
impl TryPackAs<SpinelDataWlen> for i8
source§impl TryPackAs<SpinelDataWlen> for u16
impl TryPackAs<SpinelDataWlen> for u16
source§impl TryPackAs<SpinelDataWlen> for u32
impl TryPackAs<SpinelDataWlen> for u32
source§impl TryPackAs<SpinelDataWlen> for u64
impl TryPackAs<SpinelDataWlen> for u64
source§impl TryPackAs<SpinelDataWlen> for u8
impl TryPackAs<SpinelDataWlen> for u8
source§impl<'a> TryUnpackAs<'a, SpinelDataWlen> for &'a [u8]
impl<'a> TryUnpackAs<'a, SpinelDataWlen> for &'a [u8]
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a, T, const N: usize> TryUnpackAs<'a, SpinelDataWlen> for [T; N]where
Self: TryUnpackAs<'a, [u8]>,
impl<'a, T, const N: usize> TryUnpackAs<'a, SpinelDataWlen> for [T; N]where
Self: TryUnpackAs<'a, [u8]>,
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a> TryUnpackAs<'a, SpinelDataWlen> for ()
impl<'a> TryUnpackAs<'a, SpinelDataWlen> for ()
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a> TryUnpackAs<'a, SpinelDataWlen> for EUI48
impl<'a> TryUnpackAs<'a, SpinelDataWlen> for EUI48
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a> TryUnpackAs<'a, SpinelDataWlen> for EUI64
impl<'a> TryUnpackAs<'a, SpinelDataWlen> for EUI64
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a> TryUnpackAs<'a, SpinelDataWlen> for Ipv6Addr
impl<'a> TryUnpackAs<'a, SpinelDataWlen> for Ipv6Addr
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a, T> TryUnpackAs<'a, SpinelDataWlen> for Vec<T>where
Self: TryUnpackAs<'a, [u8]>,
impl<'a, T> TryUnpackAs<'a, SpinelDataWlen> for Vec<T>where
Self: TryUnpackAs<'a, [u8]>,
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a> TryUnpackAs<'a, SpinelDataWlen> for bool
impl<'a> TryUnpackAs<'a, SpinelDataWlen> for bool
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a> TryUnpackAs<'a, SpinelDataWlen> for i16
impl<'a> TryUnpackAs<'a, SpinelDataWlen> for i16
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a> TryUnpackAs<'a, SpinelDataWlen> for i32
impl<'a> TryUnpackAs<'a, SpinelDataWlen> for i32
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a> TryUnpackAs<'a, SpinelDataWlen> for i64
impl<'a> TryUnpackAs<'a, SpinelDataWlen> for i64
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a> TryUnpackAs<'a, SpinelDataWlen> for i8
impl<'a> TryUnpackAs<'a, SpinelDataWlen> for i8
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a> TryUnpackAs<'a, SpinelDataWlen> for u16
impl<'a> TryUnpackAs<'a, SpinelDataWlen> for u16
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a> TryUnpackAs<'a, SpinelDataWlen> for u32
impl<'a> TryUnpackAs<'a, SpinelDataWlen> for u32
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a> TryUnpackAs<'a, SpinelDataWlen> for u64
impl<'a> TryUnpackAs<'a, SpinelDataWlen> for u64
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
source§impl<'a> TryUnpackAs<'a, SpinelDataWlen> for u8
impl<'a> TryUnpackAs<'a, SpinelDataWlen> for u8
source§fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
fn try_unpack_as(iter: &mut Iter<'a, u8>) -> Result<Self>
Attempts to decode the data (with a format determined by
Marker
) at the given
iterator into an instance of Self
.source§fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
fn try_unpack_as_from_slice(slice: &'a [u8]) -> Result<Self>
Convenience method for unpacking directly from a borrowed slice.
Auto Trait Implementations§
impl Freeze for SpinelDataWlen
impl RefUnwindSafe for SpinelDataWlen
impl Send for SpinelDataWlen
impl Sync for SpinelDataWlen
impl Unpin for SpinelDataWlen
impl UnwindSafe for SpinelDataWlen
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