pub struct FailedAttempt {
pub worker_id: String,
pub error: String,
}Expand description
One failed attempt at a subtask, kept so a run that eventually succeeded still shows which workers dropped it.
This type owns a JSON contract, not just an in-memory shape. foreman.run’s
report has always rendered these field names, car-cli’s fleet output parses
them, and a coder session now PERSISTS them in its snapshot — so a rename or
a new required field here breaks a consumer or an on-disk record with no
compile signal in this crate. placements_wire_shape_is_pinned is what makes
that a test failure instead (car#1322).
Fields§
§worker_id: String§error: StringTrait Implementations§
Source§impl Clone for FailedAttempt
impl Clone for FailedAttempt
Source§impl Debug for FailedAttempt
impl Debug for FailedAttempt
Source§impl<'de> Deserialize<'de> for FailedAttempt
impl<'de> Deserialize<'de> for FailedAttempt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FailedAttempt
Source§impl PartialEq for FailedAttempt
impl PartialEq for FailedAttempt
Source§impl Serialize for FailedAttempt
impl Serialize for FailedAttempt
impl StructuralPartialEq for FailedAttempt
Auto Trait Implementations§
impl Freeze for FailedAttempt
impl RefUnwindSafe for FailedAttempt
impl Send for FailedAttempt
impl Sync for FailedAttempt
impl Unpin for FailedAttempt
impl UnsafeUnpin for FailedAttempt
impl UnwindSafe for FailedAttempt
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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