pub struct BackgroundExecJob { /* private fields */ }Expand description
A reserved, owner-checked observation of an existing exec command. It does not own the process or advance its output cursor. At most one live monitor can hold a command; dropping an unstarted or cancelled monitor releases it.
Implementations§
Source§impl BackgroundExecJob
impl BackgroundExecJob
pub fn id(&self) -> &str
pub fn session_id(&self) -> &str
Sourcepub async fn completion(&self) -> BashCompletionInfo
pub async fn completion(&self) -> BashCompletionInfo
Wait for the same fully drained terminal capture used by write_stdin. The bounded snapshot leaves the ordinary pull result and TTL untouched.
Trait Implementations§
Source§impl Drop for BackgroundExecJob
impl Drop for BackgroundExecJob
Auto Trait Implementations§
impl !RefUnwindSafe for BackgroundExecJob
impl !UnwindSafe for BackgroundExecJob
impl Freeze for BackgroundExecJob
impl Send for BackgroundExecJob
impl Sync for BackgroundExecJob
impl Unpin for BackgroundExecJob
impl UnsafeUnpin for BackgroundExecJob
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