pub enum PacketBody {
Reliable(ReliableBody),
Inner(InnerBody),
}
Variants§
Reliable(ReliableBody)
Inner(InnerBody)
Implementations§
Source§impl PacketBody
impl PacketBody
Trait Implementations§
Source§impl Clone for PacketBody
impl Clone for PacketBody
Source§fn clone(&self) -> PacketBody
fn clone(&self) -> PacketBody
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PacketBody
impl Debug for PacketBody
Source§impl Deserialize for PacketBody
impl Deserialize for PacketBody
Source§type Output = PacketBody
type Output = PacketBody
Output should be Self, except for wrapper types.
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>
Source§impl PartialEq for PacketBody
impl PartialEq for PacketBody
Source§impl Serialize for PacketBody
impl Serialize for PacketBody
type Input = PacketBody
fn serialize<S: Serializer>(value: &Self::Input, ser: &mut S) -> SerializeResult
impl StructuralPartialEq for PacketBody
Auto Trait Implementations§
impl Freeze for PacketBody
impl RefUnwindSafe for PacketBody
impl Send for PacketBody
impl Sync for PacketBody
impl Unpin for PacketBody
impl UnwindSafe for PacketBody
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