#[non_exhaustive]pub enum PolicyFault {
InvalidHeader {
policy: String,
},
InvalidSource {
directive: String,
source: String,
},
}Expand description
Why a panel’s content_security_policy or a
content_security_policy_source cannot be
served.
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.
InvalidHeader
A Panel::content_security_policy that is no valid header value: drop its line breaks.
InvalidSource
A Panel::content_security_policy_source the panel’s policy cannot carry: a directive
that is no lowercase name, a source that is empty or holds whitespace, ; or ,, a
directive the policy leaves out that is no fetch directive, or any source on a panel
without a policy.
Fix the source, or set the whole policy with content_security_policy.
Trait Implementations§
Source§impl Clone for PolicyFault
impl Clone for PolicyFault
Source§impl Debug for PolicyFault
impl Debug for PolicyFault
Source§impl Display for PolicyFault
impl Display for PolicyFault
impl Eq for PolicyFault
Source§impl PartialEq for PolicyFault
impl PartialEq for PolicyFault
impl StructuralPartialEq for PolicyFault
Auto Trait Implementations§
impl Forget for PolicyFault
impl Freeze for PolicyFault
impl RefUnwindSafe for PolicyFault
impl Send for PolicyFault
impl Sync for PolicyFault
impl Unpin for PolicyFault
impl UnsafeUnpin for PolicyFault
impl UnwindSafe for PolicyFault
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.