pub enum SnippetEvent {
HostDone {
run_id: u64,
alias: String,
stdout: String,
stderr: String,
exit_code: Option<i32>,
},
Progress {
run_id: u64,
completed: usize,
total: usize,
},
AllDone {
run_id: u64,
},
}Expand description
Events emitted during background snippet execution. These are mapped to AppEvent by the caller in main.rs.
Variants§
Auto Trait Implementations§
impl Freeze for SnippetEvent
impl RefUnwindSafe for SnippetEvent
impl Send for SnippetEvent
impl Sync for SnippetEvent
impl Unpin for SnippetEvent
impl UnsafeUnpin for SnippetEvent
impl UnwindSafe for SnippetEvent
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more