#[non_exhaustive]pub enum FilterParserError {
}
Expand description
Errors for filter parser module
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Io(IOError)
Proxy value for std::io::Error
Network(HttpClientError)
Proxy value for http client errors
EmptyIf
Token !#if
has no condition expression after that
UnbalancedElse
At least one !#else
directive is redundant,
because it is not balanced with the !#if
directive.
UnbalancedEndIf
At least one !#endif
directive is redundant,
because it is not balanced with the !#if
directive.
UnbalancedIf
We’ve found unbalanced if/else/endif expressions after compiling the filter
RecursiveInclusion
Recursive filter inclusion detected
StackIsCorrupted
Stack is corrupted. This is internal error
SchemeIsIncorrect(String)
Scheme problems marker
InvalidBooleanExpression
Expression passed into !#endif
is invalid
InvalidChecksum(String, String)
Calculated invalid checksum
NoContent
Next patch is not compiled yet. So the remote file is empty
FilterContentIsLikelyNotAFilter
When filter’s body is not valid filters body by parser’s heuristics
Other(String)
Other errors
Trait Implementations§
Source§impl Debug for FilterParserError
impl Debug for FilterParserError
Source§impl Display for FilterParserError
impl Display for FilterParserError
Source§impl Error for FilterParserError
impl Error for FilterParserError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl PartialEq for FilterParserError
impl PartialEq for FilterParserError
impl StructuralPartialEq for FilterParserError
Auto Trait Implementations§
impl Freeze for FilterParserError
impl RefUnwindSafe for FilterParserError
impl Send for FilterParserError
impl Sync for FilterParserError
impl Unpin for FilterParserError
impl UnwindSafe for FilterParserError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.