pub enum FetchKind {
Html,
Css,
Script {
index: usize,
},
DynamicScript {
node_id: u64,
},
DynamicCss {
node_id: u64,
},
CssImport {
target: Url,
},
Image {
source: String,
},
Audio {
source: String,
},
JavaScript {
request_id: u64,
method: String,
headers: Vec<(String, String)>,
body: Vec<u8>,
},
Iframe {
dom_id: u64,
},
}Variants§
Html
Css
Script
DynamicScript
DynamicCss
CssImport
An @import-ed stylesheet inside another stylesheet. target is the
sheet URL to fetch; the import resolves relative to its own sheet, not
the document base.
Image
Audio
JavaScript
Iframe
Trait Implementations§
impl StructuralPartialEq for FetchKind
Auto Trait Implementations§
impl Freeze for FetchKind
impl RefUnwindSafe for FetchKind
impl Send for FetchKind
impl Sync for FetchKind
impl Unpin for FetchKind
impl UnsafeUnpin for FetchKind
impl UnwindSafe for FetchKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 more