#[non_exhaustive]pub enum AddError {
Show 19 variants
AlreadyAllowedMethod(HttpRequestMethod),
AlreadyDeniedMethod(HttpRequestMethod),
AlreadyAllowedHost(String),
AlreadyDeniedHost(String),
AlreadyAllowedPortRange(RangeInclusive<u16>),
AlreadyDeniedPortRange(RangeInclusive<u16>),
AlreadyAllowedIpRange(RangeInclusive<IpAddr>),
AlreadyDeniedIpRange(RangeInclusive<IpAddr>),
NonGlobalIpRange(RangeInclusive<IpAddr>),
AlreadyAllowedHeader(String, Option<String>),
AlreadyDeniedHeader(String, Option<String>),
AlreadyAllowedUrlPath(String),
AlreadyDeniedUrlPath(String),
AlreadyPresentStaticDnsMapping(String, SocketAddr),
InvalidEntity(String),
NotUnique(String),
Overlaps(String),
BothAllowedAndDenied(String),
Error(String),
}Expand description
Represents an error that can occur when adding a new allowed or denied entity to an ACL.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AlreadyAllowedMethod(HttpRequestMethod)
The HTTP method is already allowed.
AlreadyDeniedMethod(HttpRequestMethod)
The HTTP method is already denied.
AlreadyAllowedHost(String)
The host is already allowed.
AlreadyDeniedHost(String)
The host is already denied.
AlreadyAllowedPortRange(RangeInclusive<u16>)
The port range is already allowed.
AlreadyDeniedPortRange(RangeInclusive<u16>)
The port range is already denied.
AlreadyAllowedIpRange(RangeInclusive<IpAddr>)
The IP range is already allowed.
AlreadyDeniedIpRange(RangeInclusive<IpAddr>)
The IP range is already denied.
NonGlobalIpRange(RangeInclusive<IpAddr>)
The IP range is not a global IP range. This error is returned if the ACL is configured to disallow non-global IP ranges.
AlreadyAllowedHeader(String, Option<String>)
The header is already allowed.
AlreadyDeniedHeader(String, Option<String>)
The header is already denied.
AlreadyAllowedUrlPath(String)
The URL path is already allowed.
AlreadyDeniedUrlPath(String)
The URL path is already denied.
AlreadyPresentStaticDnsMapping(String, SocketAddr)
The static DNS mapping is already present.
InvalidEntity(String)
The entity is not allowed or denied because it is invalid.
NotUnique(String)
The entity is not unique.
Overlaps(String)
The entity overlaps with another.
BothAllowedAndDenied(String)
The entity is both allowed and denied.
Error(String)
General error with a message.