fn udp_writer(&mut self, sn: Sn) -> Result<UdpWriter<Self>, Self::Error>
    where
        Self: Sized,
    {
        let sn_tx_fsr: u16 = self.sn_tx_fsr(sn)?;
        let sn_tx_wr: u16 = self.sn_tx_wr(sn)?;

        Ok(UdpWriter {
            w5500: self,
            sn,
            head_ptr: sn_tx_wr,
            tail_ptr: sn_tx_wr.wrapping_add(sn_tx_fsr),
            ptr: sn_tx_wr,
        })
    }
/// Create a UDP writer.
///
/// This returns a [`UdpWriter`] structure, which contains functions to
/// stream data to the W5500 socket buffers incrementally.
///
/// # Example
///
/// See [`UdpWriter`].
Create a UDP writer.
This returns a [`UdpWriter`] structure, which contains functions to
stream data to the W5500 socket buffers incrementally.
Create a UDP writer . This returns a [ ` UdpWriter ` ] structure which contains functions to stream data to the W5500 socket buffers incrementally .
fn udp_writer(&mut self, sn: Sn) -> Result<UdpWriter<Self>, Self::Error>
    where
        Self: Sized,
    {
        let sn_tx_fsr: u16 = self.sn_tx_fsr(sn)?;
        let sn_tx_wr: u16 = self.sn_tx_wr(sn)?;
        Ok(UdpWriter {
            w5500: self,
            sn,
            head_ptr: sn_tx_wr,
            tail_ptr: sn_tx_wr.wrapping_add(sn_tx_fsr),
            ptr: sn_tx_wr,
        })
    }
fn udp_writer ( & mut self , sn : Sn ) -> Result < UdpWriter < Self > , Self :: Error > where Self : Sized , { let sn_tx_fsr : u16 = self . sn_tx_fsr ( sn ) ? ; let sn_tx_wr : u16 = self . sn_tx_wr ( sn ) ? ; Ok ( UdpWriter { w5500 : self , sn , head_ptr : sn_tx_wr , tail_ptr : sn_tx_wr . wrapping_add ( sn_tx_fsr ) , ptr : sn_tx_wr , } ) }
Create a UDP writer.
Create a UDP writer .
&mut self
sn
Sn
&mut self
sn
Sn
example
None