pub struct LoadData {Show 16 fields
pub load_origin: LoadOrigin,
pub url: ServoUrl,
pub creator_pipeline_id: Option<PipelineId>,
pub method: Method,
pub headers: HeaderMap,
pub data: Option<RequestBody>,
pub js_eval_result: Option<JsEvalResult>,
pub referrer: Referrer,
pub referrer_policy: ReferrerPolicy,
pub policy_container: Option<PolicyContainer>,
pub srcdoc: String,
pub inherited_secure_context: Option<bool>,
pub inherited_insecure_requests_policy: Option<InsecureRequestsPolicy>,
pub has_trustworthy_ancestor_origin: bool,
pub crash: Option<String>,
pub destination: Destination,
}
Expand description
can be passed to LoadUrl
to load a page with GET/POST
parameters or headers
Fields§
§load_origin: LoadOrigin
The origin where the load started.
url: ServoUrl
The URL.
creator_pipeline_id: Option<PipelineId>
The creator pipeline id if this is an about:blank load.
method: Method
The method.
headers: HeaderMap
The headers.
data: Option<RequestBody>
The data that will be used as the body of the request.
js_eval_result: Option<JsEvalResult>
The result of evaluating a javascript scheme url.
referrer: Referrer
The referrer.
referrer_policy: ReferrerPolicy
The referrer policy.
policy_container: Option<PolicyContainer>
The policy container.
srcdoc: String
The source to use instead of a network response for a srcdoc document.
inherited_secure_context: Option<bool>
The inherited context is Secure, None if not inherited
inherited_insecure_requests_policy: Option<InsecureRequestsPolicy>
The inherited policy for upgrading insecure requests; None if not inherited.
has_trustworthy_ancestor_origin: bool
Whether the page’s ancestors have potentially trustworthy origin
crash: Option<String>
Servo internal: if crash details are present, trigger a crash error page with these details.
destination: Destination
Destination, used for CSP checks
Implementations§
Source§impl LoadData
impl LoadData
Sourcepub fn new(
load_origin: LoadOrigin,
url: ServoUrl,
creator_pipeline_id: Option<PipelineId>,
referrer: Referrer,
referrer_policy: ReferrerPolicy,
inherited_secure_context: Option<bool>,
inherited_insecure_requests_policy: Option<InsecureRequestsPolicy>,
has_trustworthy_ancestor_origin: bool,
) -> LoadData
pub fn new( load_origin: LoadOrigin, url: ServoUrl, creator_pipeline_id: Option<PipelineId>, referrer: Referrer, referrer_policy: ReferrerPolicy, inherited_secure_context: Option<bool>, inherited_insecure_requests_policy: Option<InsecureRequestsPolicy>, has_trustworthy_ancestor_origin: bool, ) -> LoadData
Create a new LoadData
object.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LoadData
impl<'de> Deserialize<'de> for LoadData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for LoadData
impl RefUnwindSafe for LoadData
impl Send for LoadData
impl Sync for LoadData
impl Unpin for LoadData
impl UnwindSafe for LoadData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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