pub struct SynPacketBuilder { /* private fields */ }Expand description
Builder for SynPacket.
Implementations§
Source§impl SynPacketBuilder
impl SynPacketBuilder
Sourcepub fn source_ip<VALUE: Into<Ipv4Addr>>(&mut self, value: VALUE) -> &mut Self
pub fn source_ip<VALUE: Into<Ipv4Addr>>(&mut self, value: VALUE) -> &mut Self
IP address of the host machine performing scanning
Sourcepub fn source_mac<VALUE: Into<MacAddr>>(&mut self, value: VALUE) -> &mut Self
pub fn source_mac<VALUE: Into<MacAddr>>(&mut self, value: VALUE) -> &mut Self
MAC address of host machine performing scanning
Sourcepub fn source_port<VALUE: Into<u16>>(&mut self, value: VALUE) -> &mut Self
pub fn source_port<VALUE: Into<u16>>(&mut self, value: VALUE) -> &mut Self
Source port on which host machine is listening for packets
Sourcepub fn dest_ip<VALUE: Into<Ipv4Addr>>(&mut self, value: VALUE) -> &mut Self
pub fn dest_ip<VALUE: Into<Ipv4Addr>>(&mut self, value: VALUE) -> &mut Self
Target destination IP for the packet
Sourcepub fn dest_mac<VALUE: Into<MacAddr>>(&mut self, value: VALUE) -> &mut Self
pub fn dest_mac<VALUE: Into<MacAddr>>(&mut self, value: VALUE) -> &mut Self
Target destination MAC address for the packet
Trait Implementations§
Source§impl Clone for SynPacketBuilder
impl Clone for SynPacketBuilder
Source§fn clone(&self) -> SynPacketBuilder
fn clone(&self) -> SynPacketBuilder
Returns a duplicate 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 SynPacketBuilder
impl RefUnwindSafe for SynPacketBuilder
impl Send for SynPacketBuilder
impl Sync for SynPacketBuilder
impl Unpin for SynPacketBuilder
impl UnwindSafe for SynPacketBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more