aboutsummaryrefslogtreecommitdiff
path: root/src/send.rs
diff options
context:
space:
mode:
authorLizzy Fleckenstein <eliasfleckenstein@web.de>2023-02-15 21:54:25 +0100
committerLizzy Fleckenstein <eliasfleckenstein@web.de>2023-02-15 21:55:47 +0100
commit1d4ebed25ff3e05d2fac70a040901fd3ea3029eb (patch)
treee4d8d52177ffd907064a6dc19d61bd3aa482ffcd /src/send.rs
parent45d7cd0049b9349de428945c4a7c9b73cb0f461d (diff)
downloadmt_rudp-1d4ebed25ff3e05d2fac70a040901fd3ea3029eb.tar.xz
Rework structure
Diffstat (limited to 'src/send.rs')
-rw-r--r--src/send.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/send.rs b/src/send.rs
index 0bbce47..e0c2fa3 100644
--- a/src/send.rs
+++ b/src/send.rs
@@ -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 {