pub struct TuneRecoveryAttemptRow {
pub id: i64,
pub run_id: i64,
pub source_owner_id: i64,
pub recovery_owner_id: i64,
pub export_path: String,
pub started_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
pub status: RecoveryAttemptStatus,
pub detail: Option<String>,
pub evidence_json: String,
}Fields§
§id: i64§run_id: i64§source_owner_id: i64§recovery_owner_id: i64§export_path: String§started_at: DateTime<Utc>§completed_at: Option<DateTime<Utc>>§status: RecoveryAttemptStatus§detail: Option<String>§evidence_json: StringImplementations§
Source§impl TuneRecoveryAttemptRow
impl TuneRecoveryAttemptRow
pub async fn start_with_claim( pool: &SqlitePool, new_owner: NewLiveOwnership, claim_key: &str, source_owner_id: i64, run_id: i64, export_path: &str, evidence_json: &str, ) -> DbResult<Option<(LiveOwnershipRow, Self)>>
pub async fn list_for_run(pool: &SqlitePool, run_id: i64) -> DbResult<Vec<Self>>
pub async fn complete_with_ownership( pool: &SqlitePool, update: CompleteRecoveryUpdate<'_>, ) -> DbResult<()>
Sourcepub async fn abandon_after_restart(
pool: &SqlitePool,
update: RestartRecoveryUpdate<'_>,
) -> DbResult<bool>
pub async fn abandon_after_restart( pool: &SqlitePool, update: RestartRecoveryUpdate<'_>, ) -> DbResult<bool>
Rolls back only the database ownership handoff for a recovery process proven dead by the released OS lock and stale heartbeat. Controller state is never inspected or mutated here; the original eligible owner regains its claim for an explicit retry.
Trait Implementations§
Source§impl Clone for TuneRecoveryAttemptRow
impl Clone for TuneRecoveryAttemptRow
Source§fn clone(&self) -> TuneRecoveryAttemptRow
fn clone(&self) -> TuneRecoveryAttemptRow
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 TuneRecoveryAttemptRow
impl Debug for TuneRecoveryAttemptRow
Source§impl PartialEq for TuneRecoveryAttemptRow
impl PartialEq for TuneRecoveryAttemptRow
Source§impl Serialize for TuneRecoveryAttemptRow
impl Serialize for TuneRecoveryAttemptRow
impl StructuralPartialEq for TuneRecoveryAttemptRow
Auto Trait Implementations§
impl Freeze for TuneRecoveryAttemptRow
impl RefUnwindSafe for TuneRecoveryAttemptRow
impl Send for TuneRecoveryAttemptRow
impl Sync for TuneRecoveryAttemptRow
impl Unpin for TuneRecoveryAttemptRow
impl UnsafeUnpin for TuneRecoveryAttemptRow
impl UnwindSafe for TuneRecoveryAttemptRow
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