pub struct TcpFrameParams {
pub src_ip: Ipv4Addr,
pub dst_ip: Ipv4Addr,
pub src_port: u16,
pub dst_port: u16,
pub seq: u32,
pub ack: u32,
pub window: u16,
pub src_mac: [u8; 6],
pub dst_mac: [u8; 6],
}Expand description
Parameters for constructing TCP frames on the fast path.
Fields§
§src_ip: Ipv4Addr§dst_ip: Ipv4Addr§src_port: u16§dst_port: u16§seq: u32§ack: u32§window: u16§src_mac: [u8; 6]§dst_mac: [u8; 6]Trait Implementations§
Source§impl Clone for TcpFrameParams
impl Clone for TcpFrameParams
Source§fn clone(&self) -> TcpFrameParams
fn clone(&self) -> TcpFrameParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TcpFrameParams
Auto Trait Implementations§
impl Freeze for TcpFrameParams
impl RefUnwindSafe for TcpFrameParams
impl Send for TcpFrameParams
impl Sync for TcpFrameParams
impl Unpin for TcpFrameParams
impl UnsafeUnpin for TcpFrameParams
impl UnwindSafe for TcpFrameParams
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