pub enum SafetyPolicyError {
Validation(String),
Parse(Error),
HashMismatch {
expected: String,
actual: String,
},
InvalidId {
id: String,
reason: &'static str,
},
InvalidHashHex {
got: String,
},
PointerIdMismatch {
got: String,
expected: String,
},
PointerBadUrl {
got: String,
},
PointerBadHash {
got: String,
},
InlineIdMismatch {
got: String,
expected: String,
},
NotFound {
url: String,
status: u16,
},
Http(Error),
}Variants§
Validation(String)
Parse(Error)
HashMismatch
InvalidId
InvalidHashHex
PointerIdMismatch
PointerBadUrl
PointerBadHash
InlineIdMismatch
NotFound
Http(Error)
Trait Implementations§
Source§impl Debug for SafetyPolicyError
impl Debug for SafetyPolicyError
Source§impl Display for SafetyPolicyError
impl Display for SafetyPolicyError
Source§impl Error for SafetyPolicyError
impl Error for SafetyPolicyError
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 From<Error> for SafetyPolicyError
impl From<Error> for SafetyPolicyError
Auto Trait Implementations§
impl Freeze for SafetyPolicyError
impl !RefUnwindSafe for SafetyPolicyError
impl Send for SafetyPolicyError
impl Sync for SafetyPolicyError
impl Unpin for SafetyPolicyError
impl UnsafeUnpin for SafetyPolicyError
impl !UnwindSafe for SafetyPolicyError
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