Enum adblock::resources::ScriptletResourceError
source · pub enum ScriptletResourceError {
NoMatchingScriptlet,
MissingScriptletName,
ScriptletArgObjectSyntaxUnsupported,
CorruptScriptletContent,
ContentTypeNotInjectable,
InsufficientPermissions,
}
Expand description
Describes failure cases when attempting to retrieve a resource for scriptlet injection.
Variants§
NoMatchingScriptlet
MissingScriptletName
ScriptletArgObjectSyntaxUnsupported
CorruptScriptletContent
ContentTypeNotInjectable
InsufficientPermissions
Trait Implementations§
source§impl Debug for ScriptletResourceError
impl Debug for ScriptletResourceError
source§impl Display for ScriptletResourceError
impl Display for ScriptletResourceError
source§impl Error for ScriptletResourceError
impl Error for ScriptletResourceError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DecodeError> for ScriptletResourceError
impl From<DecodeError> for ScriptletResourceError
source§fn from(_: DecodeError) -> Self
fn from(_: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for ScriptletResourceError
impl From<FromUtf8Error> for ScriptletResourceError
source§fn from(_: FromUtf8Error) -> Self
fn from(_: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl PartialEq for ScriptletResourceError
impl PartialEq for ScriptletResourceError
source§fn eq(&self, other: &ScriptletResourceError) -> bool
fn eq(&self, other: &ScriptletResourceError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScriptletResourceError
Auto Trait Implementations§
impl Freeze for ScriptletResourceError
impl RefUnwindSafe for ScriptletResourceError
impl Send for ScriptletResourceError
impl Sync for ScriptletResourceError
impl Unpin for ScriptletResourceError
impl UnwindSafe for ScriptletResourceError
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