pub trait SecureCompare<Rhs: ?Sized = Self> {
// Required method
fn secure_eq(&self, other: &Rhs) -> bool;
}Expand description
Trait providing a timing-safe equality check (secure_eq) for common types.
This is intentionally tiny (no extra dependencies) and is used by auth and security-sensitive middleware.