pub struct ControllerConfig {
pub url: Url,
pub auth: AuthCredentials,
pub site: String,
pub tls: TlsVerification,
pub timeout: Duration,
pub refresh_interval_secs: u64,
pub websocket_enabled: bool,
pub polling_interval_secs: u64,
}Expand description
Configuration for connecting to a single controller.
Built by CLI/TUI, passed to Controller – core never reads config files.
Fields§
§url: UrlController URL (e.g., https://192.168.1.1).
auth: AuthCredentialsAuthentication method and credentials.
site: StringSite to operate on (defaults to “default”).
tls: TlsVerificationTLS verification strategy.
timeout: DurationRequest timeout.
refresh_interval_secs: u64How often to perform a full refresh (seconds). 0 = never.
websocket_enabled: boolEnable WebSocket event stream.
polling_interval_secs: u64Polling interval when WebSocket is unavailable (seconds).
Trait Implementations§
Source§impl Clone for ControllerConfig
impl Clone for ControllerConfig
Source§fn clone(&self) -> ControllerConfig
fn clone(&self) -> ControllerConfig
Returns a duplicate 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 ControllerConfig
impl Debug for ControllerConfig
Auto Trait Implementations§
impl Freeze for ControllerConfig
impl RefUnwindSafe for ControllerConfig
impl Send for ControllerConfig
impl Sync for ControllerConfig
impl Unpin for ControllerConfig
impl UnsafeUnpin for ControllerConfig
impl UnwindSafe for ControllerConfig
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