pub struct Events { /* private fields */ }Expand description
Where a running Binding sends its events. Cheap to clone, and Send: the executor’s worker
and plugins’ stderr readers hold one each.
Implementations§
Source§impl Events
impl Events
pub fn new(sender: Sender<RunEvent>) -> Events
Sourcepub fn held(&self) -> Events
pub fn held(&self) -> Events
Events that are held until Events::flush, for one of several Bindings running at once.
Sourcepub fn emit(&self, e: RunEvent)
pub fn emit(&self, e: RunEvent)
Send an event. Nobody listening (the run was abandoned) isn’t an error.
pub fn step( &self, level: Level, verb: &str, detail: &str, elapsed: Option<Duration>, )
pub fn warn(&self, msg: &str)
Sourcepub fn rows(&self, progress: RowProgress)
pub fn rows(&self, progress: RowProgress)
Progress is live even when the Binding’s other events are held for a block.
pub fn compiled(&self, plan: &BindingPlan)
pub fn message(&self, message: &ShownMessage)
pub fn binding_vars( &self, schedule: Option<&str>, schedule_vars: Option<&JsonMap<String, Json>>, vars: &JsonMap<String, Json>, )
Sourcepub fn plugin_log(&self) -> LogSink
pub fn plugin_log(&self) -> LogSink
Where plugin stderr goes: into the event stream.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Events
impl RefUnwindSafe for Events
impl Send for Events
impl Sync for Events
impl Unpin for Events
impl UnsafeUnpin for Events
impl UnwindSafe for Events
Blanket Implementations§
impl<T> Allocation for T
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