pub struct LoadUrlOptions { /* private fields */ }Implementations§
Source§impl LoadUrlOptions
impl LoadUrlOptions
pub fn new( base_url_for_data_url: Option<JsString>, extra_headers: Option<JsString>, http_referrer: Referrer, post_data: Box<[JsValue]>, user_agent: Option<JsString>, ) -> LoadUrlOptions
pub fn base_url_for_data_url(&self) -> Option<JsString>
pub fn set_base_url_for_data_url(&mut self, value: Option<JsString>)
pub fn extra_headers(&self) -> Option<JsString>
pub fn set_extra_headers(&mut self, value: Option<JsString>)
pub fn http_referrer(&self) -> Referrer
pub fn set_http_referrer(&mut self, value: Referrer)
pub fn post_data(&self) -> Box<[JsValue]>
pub fn set_post_data(&mut self, value: Box<[JsValue]>)
pub fn user_agent(&self) -> Option<JsString>
pub fn set_user_agent(&mut self, value: Option<JsString>)
Trait Implementations§
Source§impl Clone for LoadUrlOptions
impl Clone for LoadUrlOptions
Source§fn clone(&self) -> LoadUrlOptions
fn clone(&self) -> LoadUrlOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoadUrlOptions
impl Debug for LoadUrlOptions
Source§impl From<LoadUrlOptions> for JsValue
impl From<LoadUrlOptions> for JsValue
Source§fn from(value: LoadUrlOptions) -> Self
fn from(value: LoadUrlOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for LoadUrlOptions
impl FromWasmAbi for LoadUrlOptions
Source§impl IntoWasmAbi for LoadUrlOptions
impl IntoWasmAbi for LoadUrlOptions
Source§impl LongRefFromWasmAbi for LoadUrlOptions
impl LongRefFromWasmAbi for LoadUrlOptions
Source§type Abi = WasmPtr<WasmRefCell<LoadUrlOptions>>
type Abi = WasmPtr<WasmRefCell<LoadUrlOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<LoadUrlOptions>
type Anchor = RcRef<LoadUrlOptions>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for LoadUrlOptions
impl OptionFromWasmAbi for LoadUrlOptions
Source§impl OptionIntoWasmAbi for LoadUrlOptions
impl OptionIntoWasmAbi for LoadUrlOptions
Source§impl PartialEq for LoadUrlOptions
impl PartialEq for LoadUrlOptions
Source§fn eq(&self, other: &LoadUrlOptions) -> bool
fn eq(&self, other: &LoadUrlOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefFromWasmAbi for LoadUrlOptions
impl RefFromWasmAbi for LoadUrlOptions
Source§type Abi = WasmPtr<WasmRefCell<LoadUrlOptions>>
type Abi = WasmPtr<WasmRefCell<LoadUrlOptions>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<LoadUrlOptions>
type Anchor = RcRef<LoadUrlOptions>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for LoadUrlOptions
impl RefMutFromWasmAbi for LoadUrlOptions
Source§type Abi = WasmPtr<WasmRefCell<LoadUrlOptions>>
type Abi = WasmPtr<WasmRefCell<LoadUrlOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<LoadUrlOptions>
type Anchor = RcRefMut<LoadUrlOptions>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl StructuralPartialEq for LoadUrlOptions
impl SupportsConstructor for LoadUrlOptions
impl SupportsInstanceProperty for LoadUrlOptions
impl SupportsStaticProperty for LoadUrlOptions
Source§impl TryFromJsValue for LoadUrlOptions
impl TryFromJsValue for LoadUrlOptions
Source§impl VectorFromWasmAbi for LoadUrlOptions
impl VectorFromWasmAbi for LoadUrlOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[LoadUrlOptions]>
Source§impl VectorIntoWasmAbi for LoadUrlOptions
impl VectorIntoWasmAbi for LoadUrlOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[LoadUrlOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for LoadUrlOptions
impl WasmDescribeVector for LoadUrlOptions
Auto Trait Implementations§
impl Freeze for LoadUrlOptions
impl RefUnwindSafe for LoadUrlOptions
impl Send for LoadUrlOptions
impl Sync for LoadUrlOptions
impl Unpin for LoadUrlOptions
impl UnsafeUnpin for LoadUrlOptions
impl UnwindSafe for LoadUrlOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.