Struct socketioxide::SocketIoConfig
source · pub struct SocketIoConfig {
pub engine_config: EngineIoConfig,
pub ack_timeout: Duration,
pub connect_timeout: Duration,
}Expand description
Configuration for Socket.IO & Engine.IO
Fields§
§engine_config: EngineIoConfigThe inner Engine.IO config
ack_timeout: DurationThe amount of time the server will wait for an acknowledgement from the client before closing the connection.
Defaults to 5 seconds.
connect_timeout: DurationThe amount of time before disconnecting a client that has not successfully joined a namespace.
Defaults to 45 seconds.
Trait Implementations§
source§impl Clone for SocketIoConfig
impl Clone for SocketIoConfig
source§fn clone(&self) -> SocketIoConfig
fn clone(&self) -> SocketIoConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SocketIoConfig
impl Debug for SocketIoConfig
Auto Trait Implementations§
impl Freeze for SocketIoConfig
impl RefUnwindSafe for SocketIoConfig
impl Send for SocketIoConfig
impl Sync for SocketIoConfig
impl Unpin for SocketIoConfig
impl UnwindSafe for SocketIoConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)