pub struct BgCompletion {
pub task_id: String,
pub session_id: String,
pub status: BgTaskStatus,
pub exit_code: Option<i32>,
pub command: String,
pub output_preview: String,
pub output_truncated: bool,
}Fields§
§task_id: String§session_id: StringIntentionally omitted from serialized completion payloads: push frames
carry session_id at the BashCompletedFrame envelope level for routing.
status: BgTaskStatus§exit_code: Option<i32>§command: String§output_preview: StringTail of stdout+stderr (≤300 bytes) at completion time, read once and
cached so push-frame consumers and bash_drain_completions callers see
the same preview without racing against later output rotation. Empty
when not captured (e.g., persisted task seen on startup before buffer
reattachment).
output_truncated: boolTrue when the captured tail is shorter than the actual output (because
rotation occurred or the output exceeds the preview cap). Plugins use
this to render a … prefix and signal that bash_status would return
more.
Trait Implementations§
Source§impl Clone for BgCompletion
impl Clone for BgCompletion
Source§fn clone(&self) -> BgCompletion
fn clone(&self) -> BgCompletion
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 BgCompletion
impl Debug for BgCompletion
Auto Trait Implementations§
impl Freeze for BgCompletion
impl RefUnwindSafe for BgCompletion
impl Send for BgCompletion
impl Sync for BgCompletion
impl Unpin for BgCompletion
impl UnsafeUnpin for BgCompletion
impl UnwindSafe for BgCompletion
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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