Skip to main content

debt_operation

Function debt_operation 

Source
pub fn debt_operation(
    target: &Utf8Path,
    measured: &[Measurement],
) -> Result<Option<(Operation, Vec<u8>)>, AppError>
Expand description

The debt file the operator asked the landing to record.

The same bytes sdd debt baseline --apply writes, from the same measurements, so the two can never disagree about what a ceiling is. A target that already carries a debt file keeps it: a baseline never widens one, and a landing is not the place to argue with that.

ยงErrors

AppError::Refused for a destination no operation may name.