#[non_exhaustive]pub enum AreaFault {
AuthPageNotOffered(&'static str),
AuthPagePlacedTwice(&'static str),
AuthPageDeclares {
page: &'static str,
feature: &'static str,
},
AuditLogNotKept,
AuditLogPlacedTwice,
}Expand description
Why an area cannot hold one of the pages auth serves:
DeclarationErrorKind::Area. Each names the page:
profile, two-factor or tenant settings.
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.
AuthPageNotOffered(&'static str)
An area holds a page the panel’s auth does not install.
Install it on the panel’s Auth, or take it out of the area.
AuthPagePlacedTwice(&'static str)
Two groups hold the same page auth serves, which mounts at one URL.
Keep one.
AuthPageDeclares
The def of a page auth serves declares what its page does not render: widgets, filters, an access check or header actions.
Drop it from the def.
AuditLogNotKept
An area holds the audit log’s list, but the panel keeps no audit log.
Call Panel::audit_log, or take it out of the area.
AuditLogPlacedTwice
Two groups hold the audit log’s list, which mounts at one URL.
Keep one.
Trait Implementations§
impl Eq for AreaFault
impl StructuralPartialEq for AreaFault
Auto Trait Implementations§
impl Forget for AreaFault
impl Freeze for AreaFault
impl Move for AreaFault
impl RefUnwindSafe for AreaFault
impl Send for AreaFault
impl Sync for AreaFault
impl Unpin for AreaFault
impl UnsafeUnpin for AreaFault
impl UnwindSafe for AreaFault
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.