pub fn clear_packets(&self, addr: SocketAddr) {
        if let Some(packets) = self.network.borrow_mut().get_mut(&addr) {
            packets.clear();
        }
    }
/// Clear all packets from a socket that is bound to provided address.

Clear all packets from a socket that is bound to provided address.
Clear all packets from a socket that is bound to provided address .
pub fn clear_packets(&self, addr: SocketAddr) {
        if let Some(packets) = self.network.borrow_mut().get_mut(&addr) {
            packets.clear();
        }
    }
pub fn clear_packets ( & self , addr : SocketAddr ) { if let Some ( packets ) = self . network . borrow_mut ( ) . get_mut ( & addr ) { packets . clear ( ) ; } }
Clear all packets from a socket that is bound to provided address.
Clear all packets from a socket that is bound to provided address .
&self
addr
SocketAddr
&self
addr
SocketAddr