pub struct NewTuneWrite {Show 15 fields
pub response_level: ResponseLevel,
pub written_at: DateTime<Utc>,
pub kind: WriteKind,
pub allow_uncertain_quality: bool,
pub previous: Option<WriteReadback>,
pub proportional_written: Option<f32>,
pub integral_written: Option<f32>,
pub derivative_written: Option<f32>,
pub proportional_readback: Option<f32>,
pub integral_readback: Option<f32>,
pub derivative_readback: Option<f32>,
pub success: bool,
pub error_message: Option<String>,
pub rollback_state: Option<RollbackState>,
pub rollback_error: Option<String>,
}Expand description
Everything needed to record one write-back attempt, successful or not. Built up by the
caller through the sequential pre-read / write-and-verify / rollback steps, then persisted
in a single TuneWriteRow::insert call so partial writes and rollback outcomes are
represented alongside complete success or pre-read failure.
Fields§
§response_level: ResponseLevel§written_at: DateTime<Utc>§kind: WriteKind§allow_uncertain_quality: bool§previous: Option<WriteReadback>§proportional_written: Option<f32>§integral_written: Option<f32>§derivative_written: Option<f32>§proportional_readback: Option<f32>§integral_readback: Option<f32>§derivative_readback: Option<f32>§success: bool§error_message: Option<String>§rollback_state: Option<RollbackState>§rollback_error: Option<String>Implementations§
Source§impl NewTuneWrite
impl NewTuneWrite
Sourcepub fn new(response_level: ResponseLevel, written_at: DateTime<Utc>) -> Self
pub fn new(response_level: ResponseLevel, written_at: DateTime<Utc>) -> Self
Starts a record with every previous/written/readback/rollback field unset and
kind = WriteKind::Write. New production write/revert operations must overwrite
allow_uncertain_quality with the policy captured when that operation began; the
permissive default keeps direct repository/test construction backward-compatible.
Trait Implementations§
Source§impl Clone for NewTuneWrite
impl Clone for NewTuneWrite
Source§fn clone(&self) -> NewTuneWrite
fn clone(&self) -> NewTuneWrite
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NewTuneWrite
impl Debug for NewTuneWrite
Source§impl PartialEq for NewTuneWrite
impl PartialEq for NewTuneWrite
impl StructuralPartialEq for NewTuneWrite
Auto Trait Implementations§
impl Freeze for NewTuneWrite
impl RefUnwindSafe for NewTuneWrite
impl Send for NewTuneWrite
impl Sync for NewTuneWrite
impl Unpin for NewTuneWrite
impl UnsafeUnpin for NewTuneWrite
impl UnwindSafe for NewTuneWrite
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<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