blob: 37adc491d8172f845d28cce17cf0a4ec3d0b8ba7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
pub const DEFAULT_MESSAGE_QUEUE_SIZE: usize = 150;
pub const DEFAULT_KILL_MESSAGE_QUEUE_SIZE: usize = 10;
pub const DEFAULT_KEEP_ALIVE_INTERVAL_S: u64 = 4;
pub mod client;
pub mod server;
pub type ClientId = u64;
/// Enum with possibles errors that can occur.
#[derive(Debug)]
pub enum QuinnetError {
/// Failed serialization
Serialization,
/// Failed deserialization
Deserialization,
/// The data could not be sent on the channel because the channel is
/// currently full and sending would require blocking.
FullQueue,
/// The receive half of the channel was explicitly closed or has been
/// dropped.
ChannelClosed,
}
|