pub struct AdminConfig {
pub bind_addr: String,
pub max_connections: usize,
pub request_timeout: Duration,
pub auth_required: bool,
pub auth_token: Option<String>,
pub runtime: Option<SharedRuntime>,
}Expand description
Configuration for the admin server subsystem.
Fields§
§bind_addr: StringAddress to bind the admin server to (e.g., “127.0.0.1:9090”).
max_connections: usizeMaximum number of concurrent connections.
request_timeout: DurationTimeout for entire request lifecycle.
auth_required: boolWhether authentication is required.
auth_token: Option<String>Authentication token (if auth is required).
runtime: Option<SharedRuntime>Optional shared runtime. If not provided, a default one will be created.
Implementations§
Source§impl AdminConfig
impl AdminConfig
Sourcepub fn max_connections(self, max: usize) -> Self
pub fn max_connections(self, max: usize) -> Self
Set the maximum number of connections.
Sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Set the request timeout.
Sourcepub fn runtime(self, runtime: SharedRuntime) -> Self
pub fn runtime(self, runtime: SharedRuntime) -> Self
Set the shared runtime.
Trait Implementations§
Source§impl Clone for AdminConfig
impl Clone for AdminConfig
Source§fn clone(&self) -> AdminConfig
fn clone(&self) -> AdminConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdminConfig
impl Debug for AdminConfig
Auto Trait Implementations§
impl Freeze for AdminConfig
impl RefUnwindSafe for AdminConfig
impl Send for AdminConfig
impl Sync for AdminConfig
impl Unpin for AdminConfig
impl UnwindSafe for AdminConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)