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

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

Fields

pueue_directory: Option<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 of pueue’s state.
I.e. task logs, state dumps, etc.

runtime_directory: Option<PathBuf>

The location where runtime related files will be placed. Defaults to pueue_directory unless $XDG_RUNTIME_DIR is set.

use_unix_socket: bool

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

unix_socket_path: Option<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: Option<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: Option<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: Option<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

Get the current runtime directory in the following precedence.

  1. Config value
  2. Environment configuration
  3. Pueue directory

The unix socket path can either be explicitly specified or it’s simply placed in the current runtime directory.

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

Returns the “default value” for a type. 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)

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.