pub enum AclError {
AccessDenied(AccessDenied),
IpExtractionFailed,
RoleExtractionFailed(String),
InvalidRule(String),
ProviderError(String),
}Expand description
Error type for ACL operations.
Variants§
AccessDenied(AccessDenied)
Access was denied by an ACL rule.
IpExtractionFailed
Failed to extract the client IP address.
RoleExtractionFailed(String)
Failed to extract role from the request.
InvalidRule(String)
Invalid rule configuration.
ProviderError(String)
Rule provider error.
Trait Implementations§
Source§impl Error for AclError
impl Error for AclError
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()
Source§impl From<AccessDenied> for AclError
impl From<AccessDenied> for AclError
Source§fn from(source: AccessDenied) -> Self
fn from(source: AccessDenied) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for AclError
impl IntoResponse for AclError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for AclError
impl RefUnwindSafe for AclError
impl Send for AclError
impl Sync for AclError
impl Unpin for AclError
impl UnwindSafe for AclError
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