Skip to main content

RestoreTerminalEvidenceProvider

Trait RestoreTerminalEvidenceProvider 

Source
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 restore settlement and return its exact command set.

Implementations authenticate their maintained journal schema, original intent, complete application/effect obligations and every external command identity. 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§

Source

type Error: Error + 'static

Product-owned typed terminal qualification failure.

Required Methods§

Source

fn qualify_terminal( &self, journal: &Path, bytes: &[u8], ) -> Result<TerminalRestoreEvidence, Self::Error>

Qualify the current terminal bytes and complete retained command-custody set.

§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".

Implementors§