#[non_exhaustive]pub enum HostEvent {
Input(String),
JobExited {
id: u64,
program: String,
exit_status: i32,
running_for: Duration,
tail: String,
},
JobOverdue {
id: u64,
program: String,
running_for: Duration,
tail: String,
},
}Expand description
One thing that happened to the host. Not harness_core::Event, which is
the hook enum fired from inside a run; these arrive from outside it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Input(String)
A line the person typed.
JobExited
A background job ended.
JobOverdue
A background job is still running past the time it was expected to take.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for HostEvent
impl Freeze for HostEvent
impl RefUnwindSafe for HostEvent
impl Send for HostEvent
impl Sync for HostEvent
impl Unpin for HostEvent
impl UnsafeUnpin for HostEvent
impl UnwindSafe for HostEvent
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