#[non_exhaustive]pub enum DelegateError {
Limit(String),
Depth(String),
Unsupported(String),
Build(String),
Invalid(String),
NotJudged(String),
}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.
Limit(String)
As many delegates are running as the session allows.
Depth(String)
As deep as delegation goes.
Unsupported(String)
Build(String)
Invalid(String)
NotJudged(String)
A Hook delegate asked to judge an event of a hook agent or one of
its descendants: agent hooks do not judge those.
Trait Implementations§
Source§impl Clone for DelegateError
impl Clone for DelegateError
Source§impl Debug for DelegateError
impl Debug for DelegateError
Source§impl Display for DelegateError
impl Display for DelegateError
impl Eq for DelegateError
Source§impl Error for DelegateError
impl Error for DelegateError
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 DelegateError
impl PartialEq for DelegateError
impl StructuralPartialEq for DelegateError
Auto Trait Implementations§
impl Forget for DelegateError
impl Freeze for DelegateError
impl Move for DelegateError
impl RefUnwindSafe for DelegateError
impl Send for DelegateError
impl Sync for DelegateError
impl Unpin for DelegateError
impl UnsafeUnpin for DelegateError
impl UnwindSafe for DelegateError
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