pub struct PacketBody(/* private fields */);Expand description
Wrapping structure for raw Bytes structures that can be used as packet response
Trait Implementations§
Source§impl<T> From<T> for PacketBodywhere
T: Encodable,
impl<T> From<T> for PacketBodywhere
T: Encodable,
Source§impl IntoResponse for PacketBody
impl IntoResponse for PacketBody
Source§fn into_response(self, req: &Packet) -> Packet
fn into_response(self, req: &Packet) -> Packet
Into packet conversion
Auto Trait Implementations§
impl !Freeze for PacketBody
impl RefUnwindSafe for PacketBody
impl Send for PacketBody
impl Sync for PacketBody
impl Unpin for PacketBody
impl UnsafeUnpin 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