pub enum LoopInput {
Fs(Result<Event>),
BuildCompleted {
generation: BuildGeneration,
result: Result<(), BuildError>,
},
NodeFailed {
detail: String,
},
Interrupted,
}Expand description
Everything that can wake the session loop. The watcher callback and the build worker send these; the loop is the only receiver.
Variants§
Fs(Result<Event>)
One watcher event (or the backend’s error, which classifies as desynchronization).
BuildCompleted
A candidate build finished (successfully or not).
Fields
§
generation: BuildGenerationThe build generation that completed.
§
result: Result<(), BuildError>The build verdict; failures carry verbatim diagnostics.
NodeFailed
The node child exited or its connection died (S3): the loop stops watching and reports NODE FAILED.
Interrupted
Ctrl-C / SIGTERM: the operator asked for the ordered teardown.
Auto Trait Implementations§
impl !RefUnwindSafe for LoopInput
impl !UnwindSafe for LoopInput
impl Freeze for LoopInput
impl Send for LoopInput
impl Sync for LoopInput
impl Unpin for LoopInput
impl UnsafeUnpin for LoopInput
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request