Lines Matching refs:wr
137 let mut wr = arc_wr.lock().await;
138 let _ = wr.write_all(send.as_slice()).await;
157 let mut wr = guard.lock().await;
158 let _ = wr.write_all(send.as_slice()).await;
164 pub async fn start(id: u32, wr: SplitWriteHalf) {
167 let arc_wr = Arc::new(Mutex::new(wr));
177 let mut wr = arc_wr.lock().await;
178 let _ = wr.shutdown().await;
255 pub async fn start(session_id: u32, wr: UsbWriter) {
263 map.insert(session_id, wr);
323 let wr = arc_wr.lock().await;
324 wr.write_all(data)?;
328 pub async fn start(session_id: u32, wr: UartWriter) {
331 let arc_wr = Arc::new(Mutex::new(wr));