struct ByteMatcher {
pattern: &'static [u8],
mask: &'static [u8],
leading_ignore: &'static [u8],
content_type: Mime,
}
Fields§
§pattern: &'static [u8]
§mask: &'static [u8]
§leading_ignore: &'static [u8]
§content_type: Mime
Implementations§
Source§impl ByteMatcher
impl ByteMatcher
fn image_x_icon() -> ByteMatcher
fn image_x_icon_cursor() -> ByteMatcher
fn image_bmp() -> ByteMatcher
fn image_gif89a() -> ByteMatcher
fn image_gif87a() -> ByteMatcher
fn image_webp() -> ByteMatcher
fn image_png() -> ByteMatcher
fn image_jpeg() -> ByteMatcher
fn video_webm() -> ByteMatcher
fn audio_basic() -> ByteMatcher
fn audio_aiff() -> ByteMatcher
fn audio_mpeg() -> ByteMatcher
fn application_ogg() -> ByteMatcher
fn audio_midi() -> ByteMatcher
fn video_avi() -> ByteMatcher
fn audio_wave() -> ByteMatcher
fn text_html_doctype() -> TagTerminatedByteMatcher
fn text_html_page() -> TagTerminatedByteMatcher
fn text_html_head() -> TagTerminatedByteMatcher
fn text_html_script() -> TagTerminatedByteMatcher
fn text_html_iframe() -> TagTerminatedByteMatcher
fn text_html_h1() -> TagTerminatedByteMatcher
fn text_html_div() -> TagTerminatedByteMatcher
fn text_html_font() -> TagTerminatedByteMatcher
fn text_html_table() -> TagTerminatedByteMatcher
fn text_html_a() -> TagTerminatedByteMatcher
fn text_html_style() -> TagTerminatedByteMatcher
fn text_html_title() -> TagTerminatedByteMatcher
fn text_html_b() -> TagTerminatedByteMatcher
fn text_html_body() -> TagTerminatedByteMatcher
fn text_html_br() -> TagTerminatedByteMatcher
fn text_html_p() -> TagTerminatedByteMatcher
fn text_html_comment() -> TagTerminatedByteMatcher
fn text_xml() -> ByteMatcher
fn application_pdf() -> ByteMatcher
fn application_vnd_ms_font_object() -> ByteMatcher
fn true_type() -> ByteMatcher
fn open_type() -> ByteMatcher
fn true_type_collection() -> ByteMatcher
fn application_font_woff() -> ByteMatcher
fn application_x_gzip() -> ByteMatcher
fn application_zip() -> ByteMatcher
fn application_x_rar_compressed() -> ByteMatcher
fn application_postscript() -> ByteMatcher
fn text_plain_utf_16be_bom() -> ByteMatcher
fn text_plain_utf_16le_bom() -> ByteMatcher
fn text_plain_utf_8_bom() -> ByteMatcher
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ByteMatcher
impl RefUnwindSafe for ByteMatcher
impl Send for ByteMatcher
impl Sync for ByteMatcher
impl Unpin for ByteMatcher
impl UnwindSafe for ByteMatcher
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert