Move HEARTBEAT_ACK_TIMEOUT

Delete events.rs

Unify import

Move HEARTBEAT_ACK_TIMEOUT since its not an OPCODE
This commit is contained in:
bitfl0wer 2023-11-14 15:43:08 +01:00
parent 5243eee256
commit 32b163a4c7
5 changed files with 4 additions and 7 deletions

View File

@ -1 +0,0 @@

View File

@ -1,5 +1,4 @@
use self::event::Events;
use super::*;
use crate::types::{
self, AutoModerationRule, AutoModerationRuleUpdate, Channel, ChannelCreate, ChannelDelete,

View File

@ -1,5 +1,4 @@
use super::event::Events;
use super::*;
use super::{event::Events, *};
use crate::types::{self, Composite};
/// Represents a handle to a Gateway connection. A Gateway connection will create observable

View File

@ -2,6 +2,9 @@ use crate::types;
use super::*;
/// The amount of time we wait for a heartbeat ack before resending our heartbeat in ms
const HEARTBEAT_ACK_TIMEOUT: u64 = 2000;
/// Handles sending heartbeats to the gateway in another thread
#[allow(dead_code)] // FIXME: Remove this, once HeartbeatHandler is used
#[derive(Debug)]

View File

@ -82,9 +82,6 @@ const GATEWAY_CALL_SYNC: u8 = 13;
/// See [types::LazyRequest]
const GATEWAY_LAZY_REQUEST: u8 = 14;
/// The amount of time we wait for a heartbeat ack before resending our heartbeat in ms
const HEARTBEAT_ACK_TIMEOUT: u64 = 2000;
pub type ObservableObject = dyn Send + Sync + Any;
/// An entity type which is supposed to be updateable via the Gateway. This is implemented for all such types chorus supports, implementing it for your own types is likely a mistake.