pub enum Notice {
Mailbox {
id: Uuid,
from: String,
to: String,
},
Event {
id: Uuid,
name: Option<String>,
},
Tick {
tick: u64,
phase: String,
label: Option<String>,
},
}Expand description
Line-delimited JSON notice written to .daemon/events.sock.
Downstream schedulers need at least to and id to locate the mailbox
file at mailbox/<to>/<id>.txt. Tick notices announce ACID turn phases
driven via .daemon/tick.sock.
Cross-project wire contract. Independent programs (e.g. the jan cron
daemon) decode this enum without linking unifier. Variants and fields are
additive only; readers must ignore unknown kinds. Notices are best-effort —
EventHub::broadcast drops slow subscribers rather than buffering — so a
notice must always refer to state already persisted on the board.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Notice
impl<'de> Deserialize<'de> for Notice
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
impl Eq for Notice
impl StructuralPartialEq for Notice
Auto Trait Implementations§
impl Freeze for Notice
impl RefUnwindSafe for Notice
impl Send for Notice
impl Sync for Notice
impl Unpin for Notice
impl UnsafeUnpin for Notice
impl UnwindSafe for Notice
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