pub struct AimxConfig {
pub socket_path: PathBuf,
pub security_policy: SecurityPolicy,
pub max_connections: usize,
pub subscription_queue_size: usize,
pub auth_token: Option<String>,
pub socket_permissions: Option<u32>,
}Expand description
Configuration for AimX remote access
Defines how the remote access layer behaves, including socket path, security policy, connection limits, and subscription queue sizes.
Fields§
§socket_path: PathBufPath to Unix domain socket
security_policy: SecurityPolicySecurity policy (read-only or read-write)
max_connections: usizeMaximum number of concurrent connections
subscription_queue_size: usizeSubscription queue size per client per subscription
auth_token: Option<String>Optional authentication token
socket_permissions: Option<u32>File permissions for the socket (Unix only) Format: octal mode (e.g., 0o600 for owner-only)
Implementations§
Source§impl AimxConfig
impl AimxConfig
Sourcepub fn uds_default() -> Self
pub fn uds_default() -> Self
Creates a default UDS configuration
§Defaults
- Socket path:
/tmp/aimdb.sock - Security policy: Read-only
- Max connections: 16
- Subscription queue size: 100
- No auth token
- Socket permissions: 0o600 (owner-only)
Sourcepub fn socket_path(self, path: impl Into<PathBuf>) -> Self
pub fn socket_path(self, path: impl Into<PathBuf>) -> Self
Sets the socket path
Sourcepub fn security_policy(self, policy: SecurityPolicy) -> Self
pub fn security_policy(self, policy: SecurityPolicy) -> Self
Sets the security policy
Sourcepub fn max_connections(self, max: usize) -> Self
pub fn max_connections(self, max: usize) -> Self
Sets the maximum number of concurrent connections
Sourcepub fn subscription_queue_size(self, size: usize) -> Self
pub fn subscription_queue_size(self, size: usize) -> Self
Sets the subscription queue size per client
Sourcepub fn auth_token(self, token: impl Into<String>) -> Self
pub fn auth_token(self, token: impl Into<String>) -> Self
Sets an authentication token
Sourcepub fn socket_permissions(self, mode: u32) -> Self
pub fn socket_permissions(self, mode: u32) -> Self
Trait Implementations§
Source§impl Clone for AimxConfig
impl Clone for AimxConfig
Source§fn clone(&self) -> AimxConfig
fn clone(&self) -> AimxConfig
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 moreAuto Trait Implementations§
impl Freeze for AimxConfig
impl RefUnwindSafe for AimxConfig
impl Send for AimxConfig
impl Sync for AimxConfig
impl Unpin for AimxConfig
impl UnwindSafe for AimxConfig
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