]> git.lizzy.rs Git - mt_rudp.git/blobdiff - src/send.rs
Rework structure
[mt_rudp.git] / src / send.rs
index 0bbce47b2892d0366aa3ffb574285c043a2864cb..e0c2fa3a4407f9992ea15ab5f48864181ec0ed82 100644 (file)
@@ -1,9 +1,9 @@
-use crate::{prelude::*, Ack, RudpShare};
+use super::*;
 use byteorder::{BigEndian, WriteBytesExt};
 use std::io::{self, Write};
 use tokio::sync::watch;
 
-type AckResult = io::Result<Option<watch::Receiver<bool>>>;
+pub type AckResult = io::Result<Option<watch::Receiver<bool>>>;
 
 impl<S: UdpSender> RudpSender<S> {
     pub async fn send(&self, pkt: Pkt<&[u8]>) -> AckResult {