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: PathBufDon’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: boolIf this is set to true, unix sockets will be used. Otherwise we default to TCP+TLS
unix_socket_path: PathBufDon’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: PathBufDon’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: PathBufDon’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
impl Shared[src]
impl Shared[src]pub fn expand(old_path: &Path) -> PathBuf[src]
pub fn pueue_directory(&self) -> PathBuf[src]
pub fn unix_socket_path(&self) -> PathBuf[src]
pub fn daemon_cert(&self) -> PathBuf[src]
pub fn daemon_key(&self) -> PathBuf[src]
pub fn shared_secret_path(&self) -> PathBuf[src]
Trait Implementations
impl<'de> Deserialize<'de> for Shared[src]
impl<'de> Deserialize<'de> for Shared[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Shared
impl Send for Shared
impl Sync for Shared
impl Unpin for Shared
impl UnwindSafe for Shared
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,