pub struct PacketIn {
pub buffer_id: u32,
pub total_len: u16,
pub reason: PacketInReason,
pub table_id: u8,
pub cookie: u64,
pub match_fields: Match,
pub data: Vec<u8>,
}Expand description
Parsed Packet-In message.
Fields§
§buffer_id: u32Buffer ID assigned by the switch, or OFP_NO_BUFFER if not buffered.
total_len: u16Total length of the packet (before truncation).
reason: PacketInReasonReason the packet was sent to the controller.
table_id: u8ID of the table that generated the Packet-In.
Cookie of the flow entry that caused the Packet-In.
match_fields: MatchMatch fields from the packet.
data: Vec<u8>Packet data (may be truncated based on controller max_len).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PacketIn
impl RefUnwindSafe for PacketIn
impl Send for PacketIn
impl Sync for PacketIn
impl Unpin for PacketIn
impl UnsafeUnpin for PacketIn
impl UnwindSafe for PacketIn
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