pub struct PolicyError { /* private fields */ }Expand description
An extension PolicyExtensions refused: the page fails instead of
going out with a policy nobody meant.
Implementations§
Source§impl PolicyError
impl PolicyError
Sourcepub fn directive(&self) -> &'static str
pub fn directive(&self) -> &'static str
The directive the source was added to, such as img-src, or
content-security-policy for a whole policy edited as text.
Sourcepub fn source_expression(&self) -> &str
pub fn source_expression(&self) -> &str
The source expression as the handler wrote it (the whole policy text, for one edited as text).
Trait Implementations§
Source§impl Clone for PolicyError
impl Clone for PolicyError
Source§impl Debug for PolicyError
impl Debug for PolicyError
Source§impl Display for PolicyError
impl Display for PolicyError
impl Eq for PolicyError
Source§impl Error for PolicyError
impl Error for PolicyError
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 PolicyError
impl PartialEq for PolicyError
impl StructuralPartialEq for PolicyError
Auto Trait Implementations§
impl Freeze for PolicyError
impl RefUnwindSafe for PolicyError
impl Send for PolicyError
impl Sync for PolicyError
impl Unpin for PolicyError
impl UnsafeUnpin for PolicyError
impl UnwindSafe for PolicyError
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