pub struct BackgroundTask {
pub id: String,
pub invocation: CommandInvocation,
pub status: BackgroundTaskStatus,
pub result: Option<Result<CommandOutput, String>>,
pub cancel_tx: Option<Sender<()>>,
}Fields§
§id: String§invocation: CommandInvocation§status: BackgroundTaskStatus§result: Option<Result<CommandOutput, String>>§cancel_tx: Option<Sender<()>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for BackgroundTask
impl !RefUnwindSafe for BackgroundTask
impl Send for BackgroundTask
impl Sync for BackgroundTask
impl Unpin for BackgroundTask
impl !UnwindSafe for BackgroundTask
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