[][src]Struct tmkms::config::chain::HookConfig

pub struct HookConfig {
    pub cmd: Vec<OsString>,
    pub timeout_secs: Option<u64>,
    pub fail_closed: bool,
}

Configuration for a particular hook to invoke

Fields

cmd: Vec<OsString>

Command (with arguments) to invoke

timeout_secs: Option<u64>

Timeout (in seconds) to wait when executing the command (default 5)

fail_closed: bool

Whether or not to fail open or closed if this command fails to execute. Failing closed will prevent the KMS from starting if this command fails.

Trait Implementations

impl Default for HookConfig[src]

impl Debug for HookConfig[src]

impl<'de> Deserialize<'de> for HookConfig[src]

Auto Trait Implementations

Blanket Implementations

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

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

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.

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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default