pub enum BulkLeg {
Done,
Skipped(String),
Failed(String),
}Expand description
What a bulk run did to one plugin.
Skipped is not Failed, and keeping them apart is the whole reason this
is an enum rather than a Result. “Pinned, so there was nothing to update”
and “the build broke” both leave the plugin exactly as it was, but only one
of them is something the user needs to go and look at. A run that reports
4 updated, 2 pinned reads as success; the same run reporting 4 updated, 2 failed sends someone hunting for a problem that does not exist.
Variants§
Done
The operation ran and succeeded.
Skipped(String)
The operation did not apply to this plugin, for the reason given.
Failed(String)
The operation applied, ran, and failed.
Trait Implementations§
impl Eq for BulkLeg
impl StructuralPartialEq for BulkLeg
Auto Trait Implementations§
impl Freeze for BulkLeg
impl RefUnwindSafe for BulkLeg
impl Send for BulkLeg
impl Sync for BulkLeg
impl Unpin for BulkLeg
impl UnsafeUnpin for BulkLeg
impl UnwindSafe for BulkLeg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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