#[non_exhaustive]pub enum RepeatDefinitionError {
TooManyInterceptors {
max: usize,
},
DuplicateInterceptorId {
interceptor: RepeatInterceptorId,
},
NestingTooDeep {
max: usize,
},
DuplicateRepeatId {
repeat: RepeatId,
},
}Expand description
Stable failures while constructing bounded repeat definition metadata.
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.
TooManyInterceptors
One repeat declared more interceptors than the accepted bound.
DuplicateInterceptorId
Two interceptor registrations reused one stable ID.
Fields
§
interceptor: RepeatInterceptorIdRepeated interceptor ID.
NestingTooDeep
Nested repeat wrappers exceeded the accepted depth.
DuplicateRepeatId
A repeat ID was reused in one nested chain.
Trait Implementations§
Source§impl Clone for RepeatDefinitionError
impl Clone for RepeatDefinitionError
Source§impl Debug for RepeatDefinitionError
impl Debug for RepeatDefinitionError
Source§impl Display for RepeatDefinitionError
impl Display for RepeatDefinitionError
impl Eq for RepeatDefinitionError
Source§impl Error for RepeatDefinitionError
impl Error for RepeatDefinitionError
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()
Source§impl PartialEq for RepeatDefinitionError
impl PartialEq for RepeatDefinitionError
impl StructuralPartialEq for RepeatDefinitionError
Auto Trait Implementations§
impl Forget for RepeatDefinitionError
impl Freeze for RepeatDefinitionError
impl Move for RepeatDefinitionError
impl RefUnwindSafe for RepeatDefinitionError
impl Send for RepeatDefinitionError
impl Sync for RepeatDefinitionError
impl Unpin for RepeatDefinitionError
impl UnsafeUnpin for RepeatDefinitionError
impl UnwindSafe for RepeatDefinitionError
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