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
60
use ;
use ;
use MAX_CHANNEL_COUNT;
use Runtime;
/// Certificate functionalities shared by client & server
/// Channel functionalities shared by client & server
/// Shared error types
/// Connection functionalities shared by client & server
/// Default max size of async channels used to hold network messages. 1 async channel per connection.
pub const DEFAULT_MESSAGE_QUEUE_SIZE: usize = 150;
/// Default period of inactivity before sending a keep-alive packet
///
/// Keep-alive packets prevent an inactive but otherwise healthy connection from timing out.
pub const DEFAULT_KEEP_ALIVE_INTERVAL_S: Duration = from_secs;
/// Default max size for quinnet internal message channels
pub const DEFAULT_INTERNAL_MESSAGES_CHANNEL_SIZE: usize = 100;
/// Default max size for Quinnet Channels messages
///
/// At least MAX_CHANNEL_COUNT capacity if all available channel slots are requested to open
pub const DEFAULT_QCHANNEL_MESSAGES_CHANNEL_SIZE: usize = 2 * MAX_CHANNEL_COUNT;
/// Default max size of the queues used to transmit close messages for async tasks
pub const DEFAULT_KILL_MESSAGE_QUEUE_SIZE: usize = 10;
/// Represents the id of a client on the server.
pub type ClientId = u64;
pub const CLIENT_ID_LEN: usize = ;
/// Async runtime newtype wrapping the tokio runtime handle. used by both quinnet client and server's async back-ends.
Runtime);
pub type InternalConnectionRef = Connection;
/// System set used to update the sync client & server from updates coming from the async quinnet back-end.
///
/// This is where client & server events are raised.
///
/// This system set runs in [bevy::prelude::PreUpdate].
;
/// System set used to perform end-of-frame clean-up tasks.
///
/// May also be used to send buffered payloads at the end of a frame in the future.
///
/// This system set runs in [bevy::prelude::Last].
;