pub struct HooksConfig<K> {
pub source: String,
pub schema_version: u32,
pub drain_timeout: Duration,
pub hooks: Vec<HookConfig<K>>,
}Expand description
Process-wide hook settings.
Fields§
§source: StringCloudEvents source; with the event id it identifies an occurrence.
Must be stable across restarts. Nodes may share one, in which case consumers see a single logical producer.
schema_version: u32Versions the whole event vocabulary as one family.
Additive changes keep the version: consumers must ignore fields they do not recognize. Removing or redefining a field bumps it, and a subscription names the kind, so it receives every version of that kind.
drain_timeout: DurationHow long a shutdown waits for queued events before abandoning them.
hooks: Vec<HookConfig<K>>Implementations§
Trait Implementations§
Source§impl<K: Clone> Clone for HooksConfig<K>
impl<K: Clone> Clone for HooksConfig<K>
Auto Trait Implementations§
impl<K> !RefUnwindSafe for HooksConfig<K>
impl<K> !UnwindSafe for HooksConfig<K>
impl<K> Freeze for HooksConfig<K>
impl<K> Send for HooksConfig<K>
impl<K> Sync for HooksConfig<K>
impl<K> Unpin for HooksConfig<K>
impl<K> UnsafeUnpin for HooksConfig<K>
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