INNER CODE UNIT · Rust

fmt

cloudflare/web-bot-auth · crates/web-bot-auth/src/lib.rs:89

    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            ImplementationError::ImpossibleSfvError(e) => {
                write!(f, "impossible structured field value error: {e}")
            }
            ImplementationError::ParsingError(s) => write!(f, "parsing error: {s}"),
            ImplementationError::LookupError(component) => {
                write!(f, "lookup error: component not found: {component:?}")
            }
            ImplementationError::UnsupportedAlgorithm(alg) => {
                write!(f, "unsupported algorithm: {alg:?}")
            }
            ImplementationError::NoSuchKey => write!(f, "no such key"),
            ImplementationError::InvalidKeyLength => write!(f, "invalid key length"),
            ImplementationError::InvalidSignatureLength => write!(f, "invalid signature length"),
            ImplementationError::FailedToVerify(e) => {
                write!(f, "signature verification failed: {e}")
            }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…