#[non_exhaustive]
pub struct ServerConfiguration { pub server_name: String, pub client_simultaneous_request_limit: usize, pub request_workers: usize, pub storage: StorageConfiguration, pub default_permissions: DefaultPermissions, pub authenticated_permissions: DefaultPermissions, pub acme: AcmeConfiguration, }
Expand description

Configuration options for Server

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
server_name: String

The DNS name of the server.

client_simultaneous_request_limit: usize

Number of sumultaneous requests a single client can have in flight at a time. Default value is 16. It is important to have this number be tuned relative to request_workers such that one client cannot overwhelm the entire queue.

request_workers: usize

Number of simultaneous requests to be processed. Default value is 16.

storage: StorageConfiguration

Configuration options for individual databases.

default_permissions: DefaultPermissions

The permissions granted to all connections to this server.

authenticated_permissions: DefaultPermissions

The permissions granted to authenticated connections to this server.

acme: AcmeConfiguration

The ACME settings for automatic TLS certificate management.

Implementations

Sets Self::server_name to server_name and returns self.

Sets Self::client_simultaneous_request_limit to request_limit and returns self.

Sets Self::request_workers to workers and returns self.

Sets Self::default_permissions to default_permissions and returns self.

Sets Self::authenticated_permissions to authenticated_permissions and returns self.

Sets AcmeConfiguration::contact_email to contact_email and returns self.

Sets AcmeConfiguration::directory to directory and returns self.

Trait Implementations

Registers the schema and returns self.

Sets StorageConfiguration::path to path and returns self.

Sets StorageConfiguration::path to true and returns self.

Sets StorageConfiguration::unique_id to unique_id and returns self.

Sets StorageConfiguration::vault_key_storage to key_storage and returns self.

Sets StorageConfiguration::default_encryption_key to path and returns self.

Sets StorageConfiguration::default_compression to path and returns self.

Sets Tasks::worker_count to worker_count and returns self.

Sets Views::check_integrity_on_open to check and returns self.

Sets StorageConfiguration::key_value_persistence to persistence and returns self.

Creates a default configuration with path set.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more