diff options
author | Henauxg <19689618+Henauxg@users.noreply.github.com> | 2022-11-16 21:31:52 +0100 |
---|---|---|
committer | Henauxg <19689618+Henauxg@users.noreply.github.com> | 2022-11-16 21:31:52 +0100 |
commit | a07f3ae09dd254e04a9bc42ca891b881e5b5f17b (patch) | |
tree | 6e09c7797349914075ef2b3395bbe7c286d2a12d /src/lib.rs | |
parent | ee8fdbe772d7b81070a34fc9a4e722d18c3fe2af (diff) |
[client] Implement multiple connections within the client resource
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,6 +1,7 @@ use std::sync::PoisonError; use bevy::prelude::{Deref, DerefMut, Resource}; +use client::ConnectionId; use tokio::runtime::Runtime; pub const DEFAULT_MESSAGE_QUEUE_SIZE: usize = 150; @@ -20,6 +21,8 @@ pub(crate) struct AsyncRuntime(pub(crate) Runtime); pub enum QuinnetError { #[error("Client with id `{0}` is unknown")] UnknownClient(ClientId), + #[error("Connection with id `{0}` is unknown")] + UnknownConnection(ConnectionId), #[error("Failed serialization")] Serialization, #[error("Failed deserialization")] |