pub trait RestoreTerminalEvidenceProvider {
type Error: Error + 'static;
// Required method
fn qualify_terminal(
&self,
journal: &Path,
bytes: &[u8],
) -> Result<TerminalRestoreEvidence, Self::Error>;
}Expand description
Validate complete original settlement of an exclusively in-process restore.
Implementations authenticate their maintained journal schema, original intent, complete application/effect obligations and that no external command was dispatched. An all-Applied projection alone is insufficient. The library supplies freshly read journal bytes under its held mutation lock; no cached completion flag is used.
Required Associated Types§
Required Methods§
Sourcefn qualify_terminal(
&self,
journal: &Path,
bytes: &[u8],
) -> Result<TerminalRestoreEvidence, Self::Error>
fn qualify_terminal( &self, journal: &Path, bytes: &[u8], ) -> Result<TerminalRestoreEvidence, Self::Error>
Qualify current terminal bytes; reject any original external-command execution.
§Errors
Reject incomplete, changed, unauthenticated or unsettled original evidence.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".