pub struct WebSocketConfig {
pub ping_interval: Duration,
pub max_connections: usize,
pub message_buffer_size: usize,
pub max_message_size: usize,
pub live_update_interval: Duration,
pub live_update_max_jobs: u32,
}Expand description
WebSocket configuration
Fields§
§ping_interval: DurationPing interval to keep connections alive
max_connections: usizeMaximum number of concurrent WebSocket connections
message_buffer_size: usizeOutgoing messages queued per connection; further messages for a client that does not keep up are dropped
max_message_size: usizeMaximum size in bytes of a message (and of a frame) received from a client
live_update_interval: DurationHow often the dashboard polls the database for job state changes and queue
statistics to push to connected clients (JobUpdate and QueueUpdate messages).
Polling only happens while at least one client is connected. Zero disables live
updates. Optional in configuration files (default 2 seconds).
live_update_max_jobs: u32The most changed jobs one poll reads and pushes; further changes in the same interval are not pushed individually (the queue statistics still reflect them). Optional in configuration files (default 100).
Trait Implementations§
Source§impl Clone for WebSocketConfig
impl Clone for WebSocketConfig
Source§impl Debug for WebSocketConfig
impl Debug for WebSocketConfig
Source§impl Default for WebSocketConfig
impl Default for WebSocketConfig
Source§impl<'de> Deserialize<'de> for WebSocketConfig
impl<'de> Deserialize<'de> for WebSocketConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for WebSocketConfig
impl RefUnwindSafe for WebSocketConfig
impl Send for WebSocketConfig
impl Sync for WebSocketConfig
impl Unpin for WebSocketConfig
impl UnsafeUnpin for WebSocketConfig
impl UnwindSafe for WebSocketConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more