pub struct CtlConfig {
pub host: String,
pub port: u16,
pub auth_token: Option<String>,
pub disable_auth: bool,
pub config_path: Option<String>,
pub daemon_mode: bool,
pub tls_cert: Option<String>,
pub tls_key: Option<String>,
}Expand description
Configuration for rns-ctl.
Fields§
§host: StringBind host (default: “127.0.0.1”).
port: u16HTTP port (default: 8080).
auth_token: Option<String>Bearer token for auth. If None and !disable_auth, a random token is generated.
disable_auth: boolSkip auth entirely.
config_path: Option<String>Path to RNS config directory.
daemon_mode: boolConnect as shared instance client (–daemon).
tls_cert: Option<String>TLS certificate path.
tls_key: Option<String>TLS private key path.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CtlConfig
impl RefUnwindSafe for CtlConfig
impl Send for CtlConfig
impl Sync for CtlConfig
impl Unpin for CtlConfig
impl UnwindSafe for CtlConfig
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