1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! # Warqueen
//!
//! Hobby-scale small networking crate based on [Quinn](https://crates.io/crates/quinn),
//! message based, no async, no blocking.
//!
//! - The server and the client are intended to run in a loop.
//! - They can poll received messages and events when they want,
//! and send messages when they want.
//! - There is a message type for client-to-server messaging,
//! and a message type for server-to-client messaging, and that is all.
//! These two types can be enums to make up for that.
//! - Nya :3
//!
//! Both the client code and server code are supposed to have vaguely the following structure:
//! ```ignore
//! let mut networking_stuff = ...;
//! loop {
//! while let Some(event) = poll_event(&mut networking_stuff) {
//! handle_event(event);
//! }
//! handle_other_networking_stuff(&mut networking_stuff);
//! // ...
//! }
//! ```
//!
//! Go see the examples, they are very simple, probably the best guide for Warqueen!
//!
//! Also the [README](https://github.com/anima-libera/warqueen/blob/main/README.md)
//! that is displayed on the [crates.io page](https://crates.io/crates/warqueen)
//! has somewhat of a usage guide.
//!
//! Things to keep in mind:
//! - Do not use, lacks plenty of features.
//! - Beware the [`DisconnectionHandle`]s that are better waited for on the main thread
//! (if you have multiple threads and disconnect from a thread other than the main thread).
//! - Good luck out there!
// Opt-out derive macros.
pub use ;
pub use ;
pub use ClonelessSending;
pub use DisconnectionHandle;
pub use ;
pub use ;
pub use ;