pub enum TaskOutcome {
Succeeded {
summary: String,
},
Stopped {
message: String,
},
Failed {
message: String,
},
}Expand description
MG.41g: how a Event::BackgroundTaskFinished ended.
Deliberately two variants rather than a Result<String, String>:
the payload crosses the plugin boundary, where a typed variant
mirrors cleanly and a Result does not.
Variants§
Succeeded
Finished cleanly. summary is a short human line — the full
output belongs in a log, not a notification.
Stopped
NC.2: ended cleanly but not done — a rebase paused on an
edit, a merge left uncommitted, a conflict waiting for the
user. Reporting these as success says “finished” about work the
user still has to finish. message says what is waiting.
Failed
Failed. message is the reason, already truncated for display.
Trait Implementations§
Source§impl Clone for TaskOutcome
impl Clone for TaskOutcome
Source§fn clone(&self) -> TaskOutcome
fn clone(&self) -> TaskOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskOutcome
impl Debug for TaskOutcome
Source§impl<'de> Deserialize<'de> for TaskOutcome
impl<'de> Deserialize<'de> for TaskOutcome
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 TaskOutcome
Source§impl PartialEq for TaskOutcome
impl PartialEq for TaskOutcome
Source§impl Serialize for TaskOutcome
impl Serialize for TaskOutcome
impl StructuralPartialEq for TaskOutcome
Auto Trait Implementations§
impl Freeze for TaskOutcome
impl RefUnwindSafe for TaskOutcome
impl Send for TaskOutcome
impl Sync for TaskOutcome
impl Unpin for TaskOutcome
impl UnsafeUnpin for TaskOutcome
impl UnwindSafe for TaskOutcome
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.