Enum script::body::BodySource
source · pub enum BodySource {
Null,
Object,
}
Expand description
The Dom object, or ReadableStream, that is the source of a body. https://fetch.spec.whatwg.org/#concept-body-source
Variants§
Null
A ReadableStream comes with a null-source.
Object
Another Dom object as source, TODO: store the actual object and re-extract a stream on re-direct.
Trait Implementations§
source§impl Clone for BodySource
impl Clone for BodySource
source§fn clone(&self) -> BodySource
fn clone(&self) -> BodySource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq<BodySource> for BodySource
impl PartialEq<BodySource> for BodySource
source§fn eq(&self, other: &BodySource) -> bool
fn eq(&self, other: &BodySource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BodySource
Auto Trait Implementations§
impl RefUnwindSafe for BodySource
impl Send for BodySource
impl Sync for BodySource
impl Unpin for BodySource
impl UnwindSafe for BodySource
Blanket Implementations§
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> 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> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
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