pub struct PacketOut { /* private fields */ }Expand description
Packet-Out message builder.
Implementations§
Source§impl PacketOut
impl PacketOut
Sourcepub fn from_buffer(buffer_id: u32) -> Self
pub fn from_buffer(buffer_id: u32) -> Self
Create a Packet-Out that releases a buffered packet.
Sourcepub fn buffer_id(self, id: u32) -> Self
pub fn buffer_id(self, id: u32) -> Self
Set the buffer ID (use OFP_NO_BUFFER to include packet data).
Sourcepub fn actions(self, actions: ActionList) -> Self
pub fn actions(self, actions: ActionList) -> Self
Set the actions to apply to the packet.
Sourcepub fn data(self, data: Vec<u8>) -> Self
pub fn data(self, data: Vec<u8>) -> Self
Set the packet data (only used if buffer_id is OFP_NO_BUFFER).
Sourcepub fn to_message(&self, version: Version, xid: u32) -> Message
pub fn to_message(&self, version: Version, xid: u32) -> Message
Encode the Packet-Out to an OpenFlow message.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PacketOut
impl RefUnwindSafe for PacketOut
impl Send for PacketOut
impl Sync for PacketOut
impl Unpin for PacketOut
impl UnsafeUnpin for PacketOut
impl UnwindSafe for PacketOut
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