pub struct JobOutputAppender { /* private fields */ }Expand description
Appends to the output of one running job, such as the progress an embedder’s command reports while the script that called it runs.
What it appends joins the job’s own output in arrival order, so
Job::read, the job’s stored output and the shell’s output events see
it. Cloning shares the reference to the job, which is weak.
Implementations§
Source§impl JobOutputAppender
impl JobOutputAppender
Sourcepub async fn append(&self, bytes: &[u8]) -> AppendOutcome
pub async fn append(&self, bytes: &[u8]) -> AppendOutcome
Appends bytes to the job’s output, returning once they are in it.
Trait Implementations§
Source§impl Clone for JobOutputAppender
impl Clone for JobOutputAppender
Auto Trait Implementations§
impl !RefUnwindSafe for JobOutputAppender
impl !UnwindSafe for JobOutputAppender
impl Forget for JobOutputAppender
impl Freeze for JobOutputAppender
impl Move for JobOutputAppender
impl Send for JobOutputAppender
impl Sync for JobOutputAppender
impl Unpin for JobOutputAppender
impl UnsafeUnpin for JobOutputAppender
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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