pub struct HookDefaults {
pub timeout_seconds: u64,
pub max_output_bytes: u64,
pub suspend_mode: HookSuspendMode,
}Expand description
Hook defaults applied when a hook spec omits optional limits.
Fields§
§timeout_seconds: u64Maximum execution time per hook in seconds.
max_output_bytes: u64Maximum stdout/stderr bytes stored per stream.
suspend_mode: HookSuspendModeSuspend strategy used when on_error: suspend and no per-hook mode is set.
Trait Implementations§
Source§impl Clone for HookDefaults
impl Clone for HookDefaults
Source§fn clone(&self) -> HookDefaults
fn clone(&self) -> HookDefaults
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HookDefaults
impl Debug for HookDefaults
Source§impl Default for HookDefaults
impl Default for HookDefaults
Source§impl<'de> Deserialize<'de> for HookDefaults
impl<'de> Deserialize<'de> for HookDefaults
Source§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 Freeze for HookDefaults
impl RefUnwindSafe for HookDefaults
impl Send for HookDefaults
impl Sync for HookDefaults
impl Unpin for HookDefaults
impl UnsafeUnpin for HookDefaults
impl UnwindSafe for HookDefaults
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more