[][src]Enum adblock::lists::FilterFormat

pub enum FilterFormat {
    Standard,
    Hosts,
}

Denotes the format of a particular list resource, which affects how its rules should be parsed.

Variants

Standard

Rules should be parsed in ABP/uBO-style format.

Hosts

Each line consists of an IP address (usually 127.0.0.1 or 0.0.0.0), some whitespace, and a single hostname. This syntax is normally used directly for HOSTS-based adblockers. These rules will be treated equivalently to "||hostname^" rules in Standard format; the IP addresses will not be used.

Note that some sources provide a more raw format, where each line consists of just a hostname. This option will also accept that format.

For this option, ! is accepted as a comment character at the beginning of a line, and # is accepted as a comment character anywhere in a line.

Trait Implementations

impl Clone for FilterFormat[src]

impl Copy for FilterFormat[src]

impl Debug for FilterFormat[src]

impl<'de> Deserialize<'de> for FilterFormat[src]

impl Serialize for FilterFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for FilterFormat

impl Send for FilterFormat

impl Sync for FilterFormat

impl Unpin for FilterFormat

impl UnwindSafe for FilterFormat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.