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: boolIf 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: StringThe TCP hostname/ip address.
port: StringThe 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.
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.
- Config value
- Environment configuration
- Pueue directory
The unix socket path can either be explicitly specified or it’s simply placed in the current runtime directory.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Shared
impl UnwindSafe for Shared
Blanket Implementations
Mutably borrows from an owned value. Read more