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 · 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§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§impl RefFromWasmAbi for LoadUrlOptions
impl RefFromWasmAbi for LoadUrlOptions
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§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 VectorIntoJsValue for LoadUrlOptions
impl VectorIntoJsValue for LoadUrlOptions
fn vector_into_jsvalue(vector: Box<[LoadUrlOptions]>) -> JsValue
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
impl StructuralPartialEq for LoadUrlOptions
impl SupportsConstructor for LoadUrlOptions
impl SupportsInstanceProperty for LoadUrlOptions
impl SupportsStaticProperty 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 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::Abi
Source§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
.