pub trait ArpSenderContext<D: ArpDevice, BC: ArpBindingsContext<D, Self::DeviceId>>: ArpConfigContext + DeviceIdContext<D> {
// Required method
fn send_ip_packet_to_neighbor_link_addr<S>(
&mut self,
bindings_ctx: &mut BC,
dst_link_address: D::Address,
body: S,
) -> Result<(), SendFrameError<S>>
where S: Serializer,
S::Buffer: BufferMut;
}
Expand description
An execution context for the ARP protocol that allows sending IP packets to specific neighbors.
Required Methods§
Sourcefn send_ip_packet_to_neighbor_link_addr<S>(
&mut self,
bindings_ctx: &mut BC,
dst_link_address: D::Address,
body: S,
) -> Result<(), SendFrameError<S>>where
S: Serializer,
S::Buffer: BufferMut,
fn send_ip_packet_to_neighbor_link_addr<S>(
&mut self,
bindings_ctx: &mut BC,
dst_link_address: D::Address,
body: S,
) -> Result<(), SendFrameError<S>>where
S: Serializer,
S::Buffer: BufferMut,
Send an IP packet to the neighbor with address dst_link_address
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.