pub struct TestPacket<M> {
pub bytes: &'static [u8],
pub metadata: M,
pub body_range: Range<usize>,
}
Expand description
Represents a packet (usually from a live capture) used for testing.
Includes the raw bytes, metadata of the packet (currently just fields from the packet header) and the range which indicates where the body is.
Fields§
§bytes: &'static [u8]
§metadata: M
§body_range: Range<usize>
Auto Trait Implementations§
impl<M> Freeze for TestPacket<M>where
M: Freeze,
impl<M> RefUnwindSafe for TestPacket<M>where
M: RefUnwindSafe,
impl<M> Send for TestPacket<M>where
M: Send,
impl<M> Sync for TestPacket<M>where
M: Sync,
impl<M> Unpin for TestPacket<M>where
M: Unpin,
impl<M> UnwindSafe for TestPacket<M>where
M: UnwindSafe,
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