Skip to main content

PanicWiper

Trait PanicWiper 

Source
pub trait PanicWiper {
    // Required method
    fn wipe(&self, config: &PanicWipeConfig) -> Result<(), OpsecError>;
}
Expand description

Emergency panic-wipe port.

Synchronous and best-effort: logs failures internally but completes all wipe steps regardless. Must never propagate an error to the caller under duress.

Required Methods§

Source

fn wipe(&self, config: &PanicWipeConfig) -> Result<(), OpsecError>

Securely erase all paths described in config.

§Errors

Returns OpsecError::WipeStepFailed only when all steps have been attempted and logging is safe. Under duress this should be treated as non-fatal by the caller.

Implementors§