pub struct DreamEngine { /* private fields */ }Expand description
Dream state engine — idle-time workflow maintenance.
Implementations§
Source§impl DreamEngine
impl DreamEngine
pub fn new() -> Self
Sourcepub fn add_insight(
&mut self,
workflow_id: &str,
insight_type: InsightType,
message: &str,
severity: &str,
)
pub fn add_insight( &mut self, workflow_id: &str, insight_type: InsightType, message: &str, severity: &str, )
Record a proactive insight.
Sourcepub fn get_insights(&self) -> &[DreamInsight]
pub fn get_insights(&self) -> &[DreamInsight]
Get all insights.
Sourcepub fn insights_for_workflow(&self, workflow_id: &str) -> Vec<&DreamInsight>
pub fn insights_for_workflow(&self, workflow_id: &str) -> Vec<&DreamInsight>
Get insights for a specific workflow.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DreamEngine
impl RefUnwindSafe for DreamEngine
impl Send for DreamEngine
impl Sync for DreamEngine
impl Unpin for DreamEngine
impl UnsafeUnpin for DreamEngine
impl UnwindSafe for DreamEngine
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