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 HTTP server.
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 UnsafeUnpin 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
Source§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more