aboutsummaryrefslogtreecommitdiff
path: root/src/shared.rs
diff options
context:
space:
mode:
authorHenauxg <19689618+Henauxg@users.noreply.github.com>2023-01-05 19:02:18 +0100
committergilles henaux <gill.henaux@gmail.com>2023-01-11 14:47:28 +0100
commit14a26107031ddf10a86980e0f8ee588ac8b20d85 (patch)
treea95e451c18b48c8fcfa89869451a28498eb888a8 /src/shared.rs
parente17bb3c4c59aca95e4eb9db24003e20509352b93 (diff)
[client & shared] Rework channels and ChannelId
Diffstat (limited to 'src/shared.rs')
-rw-r--r--src/shared.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shared.rs b/src/shared.rs
index c4803a8..34215f5 100644
--- a/src/shared.rs
+++ b/src/shared.rs
@@ -5,12 +5,15 @@ use bevy::prelude::{Deref, DerefMut, Resource};
use rcgen::RcgenError;
use tokio::runtime::Runtime;
+use self::channel::ChannelId;
+
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 type ClientId = u64;
-pub type ChannelId = u64;
+
+pub mod channel;
#[derive(Resource, Deref, DerefMut)]
pub(crate) struct AsyncRuntime(pub(crate) Runtime);