#[non_exhaustive]pub enum AddError {
Show 18 variants
AlreadyAllowedMethod(HttpRequestMethod),
AlreadyDeniedMethod(HttpRequestMethod),
AlreadyAllowedHost(String),
AlreadyDeniedHost(String),
AlreadyAllowedPortRange(RangeInclusive<u16>),
AlreadyDeniedPortRange(RangeInclusive<u16>),
AlreadyAllowedIpRange(RangeInclusive<IpAddr>),
AlreadyDeniedIpRange(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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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.
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.
Trait Implementations§
Source§impl Error for AddError
impl Error for AddError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Eq for AddError
impl StructuralPartialEq for AddError
Auto Trait Implementations§
impl Freeze for AddError
impl RefUnwindSafe for AddError
impl Send for AddError
impl Sync for AddError
impl Unpin for AddError
impl UnwindSafe for AddError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more