pub struct ServerConfig {
pub listen: Listen,
pub acknowledgements: Acknowledgements,
pub token_file: Option<PathBuf>,
pub require_token_on_unix: bool,
pub allowed_hosts: Vec<String>,
pub public_health: bool,
pub tls_cert: Option<PathBuf>,
pub tls_key: Option<PathBuf>,
pub max_queue: Option<usize>,
pub max_connections: Option<usize>,
pub request_timeout: Option<Duration>,
}Expand description
Everything about how the server is exposed.
Fields§
§listen: Listen§acknowledgements: Acknowledgements§token_file: Option<PathBuf>Read tokens from this file (one per line). Otherwise LOQUI_TOKEN,
otherwise a generated token at fs::default_token_path.
require_token_on_unix: boolRequire a token on the Unix socket as well.
allowed_hosts: Vec<String>Extra Host names TCP clients may use.
public_health: bool§tls_cert: Option<PathBuf>§tls_key: Option<PathBuf>§max_queue: Option<usize>Requests allowed to wait per model before 503. Default 8.
max_connections: Option<usize>Open connections. Default 64.
request_timeout: Option<Duration>Per-request deadline. Default 120 s.
Trait 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