Struct blaze_pk::packet::PacketDebug
source · pub struct PacketDebug<'a, C> {
pub packet: &'a Packet,
pub component: Option<&'a C>,
pub minified: bool,
}
Expand description
Wrapper over a packet structure to provde debug logging with names resolved for the component
Fields§
§packet: &'a Packet
Reference to the packet itself
component: Option<&'a C>
The component derived from the packet header
minified: bool
Decide whether to display the contents of the packet
Trait Implementations§
Auto Trait Implementations§
impl<'a, C> RefUnwindSafe for PacketDebug<'a, C>where C: RefUnwindSafe,
impl<'a, C> Send for PacketDebug<'a, C>where C: Sync,
impl<'a, C> Sync for PacketDebug<'a, C>where C: Sync,
impl<'a, C> Unpin for PacketDebug<'a, C>
impl<'a, C> UnwindSafe for PacketDebug<'a, C>where C: RefUnwindSafe,
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