pub enum PidWriteOutcome {
Written,
Failed {
detail: String,
},
}Expand description
The result of write_pid_values – deliberately simpler than [WriteBackOutcome]
below, which layers CLI-only concerns (a Skipped variant covering unconfigured tags, no
recorded results, or an interactive skip) on top of this. write_pid_values only ever
runs once a specific, available target has already been chosen, so there is nothing left
to “skip” by the time it’s called. Named distinctly from bhtune_driver::WriteOutcome
(that one describes a single raw tag write’s own outcome; this one describes the full
pre-read/write/verify/rollback/audit sequence across all three PID constants).
Variants§
Written
Every constant was written and confirmed within tolerance.
Failed
The pre-read, a write, or a readback failed. detail is a human-readable summary
suitable for surfacing directly to a CLI user or an HTTP error body – including
whether/how rollback resolved, for a WriteKind::Write that failed partway
through. A TuneWriteRow audit row was still inserted recording the same story in
full detail; this is only ever a summary of it.
Trait Implementations§
Source§impl Clone for PidWriteOutcome
impl Clone for PidWriteOutcome
Source§fn clone(&self) -> PidWriteOutcome
fn clone(&self) -> PidWriteOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PidWriteOutcome
impl Debug for PidWriteOutcome
Source§impl PartialEq for PidWriteOutcome
impl PartialEq for PidWriteOutcome
Source§fn eq(&self, other: &PidWriteOutcome) -> bool
fn eq(&self, other: &PidWriteOutcome) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PidWriteOutcome
Auto Trait Implementations§
impl Freeze for PidWriteOutcome
impl RefUnwindSafe for PidWriteOutcome
impl Send for PidWriteOutcome
impl Sync for PidWriteOutcome
impl Unpin for PidWriteOutcome
impl UnsafeUnpin for PidWriteOutcome
impl UnwindSafe for PidWriteOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].