Table of Contents

Struct RepairStepResult

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

The receipt for one applied step.

public readonly struct RepairStepResult : IEquatable<RepairStepResult>
Implements
Inherited Members

Constructors

RepairStepResult(RepairStep, StepOutcome, string, LossEstimate)

The receipt for one applied step.

public RepairStepResult(RepairStep Step, StepOutcome Outcome, string Detail, LossEstimate ActualLoss)

Parameters

Step RepairStep

The step that was attempted.

Outcome StepOutcome

What happened.

Detail string

What the step actually did, or why it did not.

ActualLoss LossEstimate

What was really lost, which may be less than estimated — a suspect page can turn out to be orphaned and heal.

Properties

ActualLoss

What was really lost, which may be less than estimated — a suspect page can turn out to be orphaned and heal.

public LossEstimate ActualLoss { get; init; }

Property Value

LossEstimate

Detail

What the step actually did, or why it did not.

public string Detail { get; init; }

Property Value

string

Outcome

What happened.

public StepOutcome Outcome { get; init; }

Property Value

StepOutcome

Step

The step that was attempted.

public RepairStep Step { get; init; }

Property Value

RepairStep

Methods

Deconstruct(out RepairStep, out StepOutcome, out string, out LossEstimate)

public void Deconstruct(out RepairStep Step, out StepOutcome Outcome, out string Detail, out LossEstimate ActualLoss)

Parameters

Step RepairStep
Outcome StepOutcome
Detail string
ActualLoss LossEstimate

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(RepairStepResult)

public bool Equals(RepairStepResult other)

Parameters

other RepairStepResult

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(RepairStepResult, RepairStepResult)

public static bool operator ==(RepairStepResult left, RepairStepResult right)

Parameters

left RepairStepResult
right RepairStepResult

Returns

bool

operator !=(RepairStepResult, RepairStepResult)

public static bool operator !=(RepairStepResult left, RepairStepResult right)

Parameters

left RepairStepResult
right RepairStepResult

Returns

bool