[][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 Debug for HookConfig[src]

impl Default for HookConfig[src]

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

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any
[src]

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

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

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

impl<C> Config for C where
    C: Debug + Default + DeserializeOwned
[src]

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

impl<T> Erased for T

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

impl<T> InitializableFromZeroed for T where
    T: Default

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,