From 7b7721a8b5c73cef37d75a6f96e2d8a55668bbd5 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Fri, 23 Dec 2022 15:31:10 +0100 Subject: splits infrastructure --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 2a5ff2f..aadb5cc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ #![feature(yeet_expr)] #![feature(cursor_remaining)] +#![feature(hash_drain_filter)] mod client; pub mod error; mod recv_worker; @@ -19,6 +20,7 @@ pub const UDP_PKT_SIZE: usize = 512; pub const NUM_CHANS: usize = 3; pub const REL_BUFFER: usize = 0x8000; pub const INIT_SEQNUM: u16 = 65500; +pub const TIMEOUT: u64 = 30; pub trait UdpSender: Send + Sync + 'static { fn send(&self, data: Vec) -> io::Result<()>; -- cgit v1.2.3