pub struct Ipv4PacketBuilder {
pub src_ip: Ipv4Addr,
pub dst_ip: Ipv4Addr,
pub next_protocol: IpNextLevelProtocol,
pub total_length: Option<u16>,
pub identification: Option<u16>,
pub ttl: Option<u8>,
pub flags: Option<u8>,
}
Expand description
IPv4 Packet Builder.
Fields§
§src_ip: Ipv4Addr
§dst_ip: Ipv4Addr
§next_protocol: IpNextLevelProtocol
§total_length: Option<u16>
§identification: Option<u16>
§ttl: Option<u8>
§flags: Option<u8>
Implementations§
Trait Implementations§
Source§impl Clone for Ipv4PacketBuilder
impl Clone for Ipv4PacketBuilder
Source§fn clone(&self) -> Ipv4PacketBuilder
fn clone(&self) -> Ipv4PacketBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for Ipv4PacketBuilder
impl RefUnwindSafe for Ipv4PacketBuilder
impl Send for Ipv4PacketBuilder
impl Sync for Ipv4PacketBuilder
impl Unpin for Ipv4PacketBuilder
impl UnwindSafe for Ipv4PacketBuilder
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