spectrust_fastly_worker 0.1.0

SpecTrust library to integrate Spec Proxy with Fastly Compute@Edge
Documentation
use std::net::AddrParseError;

use thiserror::Error;

/// Top-level error enumeration
#[derive(Error, Debug)]
pub enum Error {
    /// We couldn't find a Fastly Backend mapping for an incoming request's hostname.
    #[error("Missing Fastly backend for host {0}")]
    MissingFastlyBackend(String),
    /// Host is missing from the Url, this will likely never occur with this library.
    /// We don't want to panic in any case though, so this is our representation of a
    /// possible error while reading the host.
    #[error("Host missing from Url")]
    MissingHost,
    /// There was an error parsing the IP address from headers.
    #[error(transparent)]
    AddrParse(#[from] AddrParseError),
}