pub struct DetectedWave {
pub wave_id: String,
pub target_hat: HatId,
pub hat_config: HatConfig,
pub events: Vec<Event>,
pub total: u32,
}Expand description
A detected wave ready for execution.
Fields§
§wave_id: StringWave correlation ID.
target_hat: HatIdHat that should process these events.
hat_config: HatConfigConfiguration for the target hat.
events: Vec<Event>Individual events in this wave, ordered by wave_index.
total: u32Total expected events in the wave.
Implementations§
Source§impl DetectedWave
impl DetectedWave
Sourcepub fn timeout_secs(&self) -> u64
pub fn timeout_secs(&self) -> u64
Returns the effective timeout in seconds for wave workers.
Priority: hat.timeout > hat.aggregate.timeout > 300s default.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DetectedWave
impl RefUnwindSafe for DetectedWave
impl Send for DetectedWave
impl Sync for DetectedWave
impl Unpin for DetectedWave
impl UnsafeUnpin for DetectedWave
impl UnwindSafe for DetectedWave
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