pub struct AckUdp {
pub sock: Arc<UdpSocket>,
pub ready_to_read_datagrams: Arc<Mutex<VecDeque<(SocketAddr, Vec<u8>)>>>,
pub pending_in_datagrams: Arc<Mutex<HashMap<[u8; 5], AckUdpDatagram>>>,
pub pending_out_datagrams: Arc<Mutex<HashMap<[u8; 5], AckUdpDatagram>>>,
pub out_datagrams_status_links: Arc<Mutex<HashMap<[u8; 5], Arc<Mutex<AckUdpDatagramOutStatus>>>>>,
pub kill_listener_channel_sender: Sender<()>,
pub kill_income_checker_channel_sender: Sender<()>,
pub kill_outcome_checker_listener_channel_sender: Sender<()>,
pub kill_incoming_queue_channel_sender: Sender<()>,
pub incoming_queue: Arc<Mutex<VecDeque<(SocketAddr, Vec<u8>)>>>,
}
Fields§
§sock: Arc<UdpSocket>
§ready_to_read_datagrams: Arc<Mutex<VecDeque<(SocketAddr, Vec<u8>)>>>
§pending_in_datagrams: Arc<Mutex<HashMap<[u8; 5], AckUdpDatagram>>>
§pending_out_datagrams: Arc<Mutex<HashMap<[u8; 5], AckUdpDatagram>>>
§out_datagrams_status_links: Arc<Mutex<HashMap<[u8; 5], Arc<Mutex<AckUdpDatagramOutStatus>>>>>
§kill_listener_channel_sender: Sender<()>
§kill_income_checker_channel_sender: Sender<()>
§kill_outcome_checker_listener_channel_sender: Sender<()>
§kill_incoming_queue_channel_sender: Sender<()>
§incoming_queue: Arc<Mutex<VecDeque<(SocketAddr, Vec<u8>)>>>
Implementations§
Source§impl AckUdp
impl AckUdp
pub async fn process_packets( incoming_queue_receiver: Receiver<()>, incoming_queue: Arc<Mutex<VecDeque<(SocketAddr, Vec<u8>)>>>, socket: Arc<UdpSocket>, ready_to_read_datagrams: Arc<Mutex<VecDeque<(SocketAddr, Vec<u8>)>>>, pending_in_datagrams: Arc<Mutex<HashMap<[u8; 5], AckUdpDatagram>>>, pending_out_datagrams: Arc<Mutex<HashMap<[u8; 5], AckUdpDatagram>>>, out_datagrams_status_links: Arc<Mutex<HashMap<[u8; 5], Arc<Mutex<AckUdpDatagramOutStatus>>>>>, )
Auto Trait Implementations§
impl Freeze for AckUdp
impl !RefUnwindSafe for AckUdp
impl Send for AckUdp
impl Sync for AckUdp
impl Unpin for AckUdp
impl !UnwindSafe for AckUdp
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