pub struct ArpBuilder { /* private fields */ }Implementations§
Source§impl ArpBuilder
impl ArpBuilder
pub fn new() -> Self
pub fn who_has(pdst: Ipv4Addr) -> Self
pub fn is_at(psrc: Ipv4Addr, hwsrc: MacAddress) -> Self
pub fn hwtype(self, v: u16) -> Self
pub fn ptype(self, v: u16) -> Self
pub fn hwlen(self, v: u8) -> Self
pub fn plen(self, v: u8) -> Self
pub fn op(self, v: u16) -> Self
pub fn op_name(self, name: &str) -> Self
pub fn hwsrc(self, v: MacAddress) -> Self
pub fn hwsrc_raw(self, v: HardwareAddr) -> Self
pub fn psrc(self, v: Ipv4Addr) -> Self
pub fn psrc_v6(self, v: Ipv6Addr) -> Self
pub fn psrc_raw(self, v: ProtocolAddr) -> Self
pub fn hwdst(self, v: MacAddress) -> Self
pub fn hwdst_raw(self, v: HardwareAddr) -> Self
pub fn pdst(self, v: Ipv4Addr) -> Self
pub fn pdst_v6(self, v: Ipv6Addr) -> Self
pub fn pdst_raw(self, v: ProtocolAddr) -> Self
pub fn size(&self) -> usize
pub fn build(&self) -> Vec<u8> ⓘ
pub fn build_into(&self, buf: &mut [u8]) -> Result<(), FieldError>
Trait Implementations§
Source§impl Clone for ArpBuilder
impl Clone for ArpBuilder
Source§fn clone(&self) -> ArpBuilder
fn clone(&self) -> ArpBuilder
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 moreSource§impl Debug for ArpBuilder
impl Debug for ArpBuilder
Source§impl Default for ArpBuilder
impl Default for ArpBuilder
Source§impl From<ArpBuilder> for LayerStack
impl From<ArpBuilder> for LayerStack
Source§fn from(builder: ArpBuilder) -> Self
fn from(builder: ArpBuilder) -> Self
Converts to this type from the input type.
Source§impl IntoLayerStackEntry for ArpBuilder
impl IntoLayerStackEntry for ArpBuilder
fn into_layer_stack_entry(self) -> LayerStackEntry
Auto Trait Implementations§
impl Freeze for ArpBuilder
impl RefUnwindSafe for ArpBuilder
impl Send for ArpBuilder
impl Sync for ArpBuilder
impl Unpin for ArpBuilder
impl UnsafeUnpin for ArpBuilder
impl UnwindSafe for ArpBuilder
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