workyard-application 0.1.3

Task actions and interface contracts for Workyard
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Structured interface defaults selected by Workyard.
use crate::contracts::Progress;

/// Each subscribed Workyard view can buffer this many participant events.
pub(crate) const EVENT_CAPACITY: std::num::NonZeroUsize = std::num::NonZeroUsize::new(16).unwrap();

pub(crate) fn progress_binding<O, E>() -> trine::structured::StructuredBinding<O, E, Progress>
where
	O: serde::Serialize + Sync + 'static,
	E: serde::Serialize + Sync + 'static,
{
	trine::structured::StructuredBinding::serde_progress(EVENT_CAPACITY)
}