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

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 Clone for Shared[src]

fn clone(&self) -> Shared[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Shared[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for Shared[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

impl Serialize for Shared[src]

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. 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> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]

🔬 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<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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]