pub struct PacketTypeDebug(/* private fields */);Implementations§
Trait Implementations§
Source§impl ByteDeserializeBytes<PacketTypeDebug> for PacketTypeDebug
impl ByteDeserializeBytes<PacketTypeDebug> for PacketTypeDebug
Source§fn byte_deserialize(
des: &mut ByteDeserializerBytes,
) -> Result<PacketTypeDebug, SerDesError>
fn byte_deserialize( des: &mut ByteDeserializerBytes, ) -> Result<PacketTypeDebug, SerDesError>
If successful returns a new instance of T type struct, depleting exactly the right amount of bytes from ByteDeserializerBytes
Number of bytes depleted is determined by the struct T itself and its member types.
Source§fn byte_deserialize_take(
des: &mut ByteDeserializerBytes,
len: usize,
) -> Result<T, SerDesError>
fn byte_deserialize_take( des: &mut ByteDeserializerBytes, len: usize, ) -> Result<T, SerDesError>
if successful returns a new instance of T type struct, however ONLY depleting a maximum of
len bytes from ByteDeserializerBytes
Intended for types with variable length such as Strings, Vec, etc.
No bytes will be depleted if attempt was not successful.Source§impl ByteDeserializeSlice<PacketTypeDebug> for PacketTypeDebug
impl ByteDeserializeSlice<PacketTypeDebug> for PacketTypeDebug
Source§fn byte_deserialize(
des: &mut ByteDeserializerSlice<'_>,
) -> Result<PacketTypeDebug, SerDesError>
fn byte_deserialize( des: &mut ByteDeserializerSlice<'_>, ) -> Result<PacketTypeDebug, SerDesError>
If successful returns a new instance of T type struct, depleting exactly the right amount of bytes from ByteDeserializerSlice
Number of bytes depleted is determined by the struct T itself and its member types.
Source§fn byte_deserialize_take(
des: &mut ByteDeserializerSlice<'_>,
len: usize,
) -> Result<T, SerDesError>
fn byte_deserialize_take( des: &mut ByteDeserializerSlice<'_>, len: usize, ) -> Result<T, SerDesError>
if successful returns a new instance of T type struct, however ONLY depleting a maximum of
len bytes from ByteDeserializerSlice
Intended for types with variable length such as Strings, Vec, etc.
No bytes will be depleted if attempt was not successful.Source§impl ByteSerializeStack for PacketTypeDebug
impl ByteSerializeStack for PacketTypeDebug
fn byte_serialize_stack<const CAP: usize>( &self, ser: &mut ByteSerializerStack<CAP>, ) -> Result<(), SerDesError>
Source§impl Clone for PacketTypeDebug
impl Clone for PacketTypeDebug
Source§fn clone(&self) -> PacketTypeDebug
fn clone(&self) -> PacketTypeDebug
Returns a duplicate of the value. Read more
1.0.0 · 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 PacketTypeDebug
impl Debug for PacketTypeDebug
Source§impl Default for PacketTypeDebug
impl Default for PacketTypeDebug
Source§fn default() -> PacketTypeDebug
fn default() -> PacketTypeDebug
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PacketTypeDebug
impl<'de> Deserialize<'de> for PacketTypeDebug
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PacketTypeDebug, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<PacketTypeDebug, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PacketTypeDebug
impl Display for PacketTypeDebug
Source§impl PartialEq for PacketTypeDebug
impl PartialEq for PacketTypeDebug
Source§impl Serialize for PacketTypeDebug
impl Serialize for PacketTypeDebug
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PacketTypeDebug
impl StructuralPartialEq for PacketTypeDebug
Auto Trait Implementations§
impl Freeze for PacketTypeDebug
impl RefUnwindSafe for PacketTypeDebug
impl Send for PacketTypeDebug
impl Sync for PacketTypeDebug
impl Unpin for PacketTypeDebug
impl UnwindSafe for PacketTypeDebug
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