Struct cross_socket::packet::ipv4::Ipv4PacketBuilder
source · 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<Ipv4Flags>,
}
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<Ipv4Flags>
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 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