pub struct Config {
pub host: String,
pub port: u16,
pub graphics_storage: String,
pub log_level: String,
pub action_timeout_ms: u64,
pub graphics_cache_ttl_secs: u64,
pub renderer_max_pending: usize,
}Expand description
No renderer_token here — access control is delegated to the
AccessControl implementation, not handled by Core’s env-derived config.
Fields§
§host: String§port: u16§graphics_storage: String§log_level: String§action_timeout_ms: u64§graphics_cache_ttl_secs: u64§renderer_max_pending: usizeImplementations§
Source§impl Config
impl Config
pub fn from_env() -> Self
Sourcepub fn action_timeout(&self) -> Duration
pub fn action_timeout(&self) -> Duration
How long the server waits for a renderer to confirm a load/action command before treating it as failed (504).
Sourcepub fn graphics_cache_ttl(&self) -> Duration
pub fn graphics_cache_ttl(&self) -> Duration
How long to cache the graphics list before re-scanning disk. Set to 0 to disable caching (always fetch fresh from disk).
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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