pub struct ServerConfig {
pub bind_addr: SocketAddr,
pub ui_dir: Option<PathBuf>,
pub default_page_limit: usize,
pub max_page_limit: usize,
pub max_page_bytes: usize,
pub live_batch_limit: usize,
pub live_buffer_events: usize,
pub live_buffer_bytes: usize,
pub live_poll_interval: Duration,
pub keep_alive_interval: Duration,
}Expand description
Loopback-only server, pagination limits, and live polling bounds.
Fields§
§bind_addr: SocketAddr§ui_dir: Option<PathBuf>Optional directory containing an independently delivered browser UI.
The four required assets are loaded and validated before the server starts. When set, this directory takes precedence over the optional embedded UI feature.
default_page_limit: usize§max_page_limit: usize§max_page_bytes: usizeConservative maximum serialized size retained for one history page.
live_batch_limit: usize§live_buffer_events: usizeMaximum events retained by the shared live fanout.
live_buffer_bytes: usizeMaximum accounted event bytes retained by the shared live fanout and by one live history catch-up page.
live_poll_interval: Duration§keep_alive_interval: DurationTrait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§impl Debug for ServerConfig
impl Debug for ServerConfig
Auto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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