Trait netstack3_ip::device::IpDeviceSendContext

source ·
pub trait IpDeviceSendContext<I: IpExt, BC>: DeviceIdContext<AnyDevice> {
    // Required method
    fn send_ip_frame<S>(
        &mut self,
        bindings_ctx: &mut BC,
        device_id: &Self::DeviceId,
        destination: IpPacketDestination<I, &Self::DeviceId>,
        body: S,
        egress_proof: ProofOfEgressCheck,
    ) -> Result<(), SendFrameError<S>>
       where S: Serializer,
             S::Buffer: BufferMut;
}
Expand description

The execution context for an IP device with a buffer.

Required Methods§

source

fn send_ip_frame<S>( &mut self, bindings_ctx: &mut BC, device_id: &Self::DeviceId, destination: IpPacketDestination<I, &Self::DeviceId>, body: S, egress_proof: ProofOfEgressCheck, ) -> Result<(), SendFrameError<S>>
where S: Serializer, S::Buffer: BufferMut,

Sends an IP packet through the device.

Object Safety§

This trait is not object safe.

Implementors§