Struct pueue_lib::settings::Shared[][src]

pub struct Shared {
    pub pueue_directory: PathBuf,
    pub use_unix_socket: bool,
    pub unix_socket_path: PathBuf,
    pub host: String,
    pub port: String,
    pub daemon_cert: PathBuf,
    pub daemon_key: PathBuf,
    pub shared_secret_path: PathBuf,
}
Expand description

All settings which are used by both, the client and the daemon

Fields

pueue_directory: PathBuf

Don’t access this property directly, but rather use the getter with the same name. It’s only public to allow proper integration testing.

The directory that is used for all runtime information.
I.e. task logs, sockets, state dumps, etc.

use_unix_socket: bool

If this is set to true, unix sockets will be used. Otherwise we default to TCP+TLS

unix_socket_path: PathBuf

Don’t access this property directly, but rather use the getter with the same name. It’s only public to allow proper integration testing.

The path to the unix socket.

host: String

The TCP hostname/ip address.

port: String

The TCP port.

daemon_cert: PathBuf

Don’t access this property directly, but rather use the getter with the same name. It’s only public to allow proper integration testing.

The path to the TLS certificate used by the daemon.
This is also used by the client to verify the daemon’s identity.

daemon_key: PathBuf

Don’t access this property directly, but rather use the getter with the same name. It’s only public to allow proper integration testing.

The path to the TLS key used by the daemon.

shared_secret_path: PathBuf

Don’t access this property directly, but rather use the getter with the same name. It’s only public to allow proper integration testing.

The path to the file containing the shared secret used to authenticate the client.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. 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

Performs the conversion.

Performs the conversion.

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)

recently added

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.