pub enum AuthorizeError {
TooManySegmentsInRequest {
requested: usize,
max: usize,
},
TooManyTargetsInRequest {
requested: usize,
max: usize,
},
TooManySegmentsForTarget {
dst: CustomerDomain,
requested: usize,
max: usize,
},
TargetGrantLimitReached {
dst: CustomerDomain,
in_use: usize,
needed: usize,
max: usize,
},
TooManyTargetsForIp {
requested: usize,
max: usize,
},
IpTargetLimitReached {
in_use: usize,
needed: usize,
max: usize,
},
}Expand description
Failures of GrantManager::authorize.
Variants§
TooManySegmentsInRequest
The request is over GrantManagerConfig::max_segments_per_request.
Fields
TooManyTargetsInRequest
The request is over GrantManagerConfig::max_targets_per_request.
Fields
TooManySegmentsForTarget
One destination of the request is over GrantManagerConfig::max_segments_per_target.
Fields
§
dst: CustomerDomainThe destination that is over the limit.
TargetGrantLimitReached
One destination is at its limit, and too many of its grants are guarded to evict.
Fields
§
dst: CustomerDomainThe destination that is over the limit.
TooManyTargetsForIp
The request alone is over GrantManagerConfig::max_targets_per_ip.
Fields
IpTargetLimitReached
The IP is at its limit, and too many of its target grants are in use to evict.
Trait Implementations§
Source§impl Debug for AuthorizeError
impl Debug for AuthorizeError
Source§impl Display for AuthorizeError
impl Display for AuthorizeError
Source§impl Error for AuthorizeError
impl Error for AuthorizeError
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()
Auto Trait Implementations§
impl Freeze for AuthorizeError
impl RefUnwindSafe for AuthorizeError
impl Send for AuthorizeError
impl Sync for AuthorizeError
impl Unpin for AuthorizeError
impl UnsafeUnpin for AuthorizeError
impl UnwindSafe for AuthorizeError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more