pub struct ClientRequestOptions { /* private fields */ }
Implementations§
Source§impl ClientRequestOptions
impl ClientRequestOptions
pub fn new( host: Option<JsString>, hostname: Option<JsString>, method: Option<JsString>, partition: Option<JsString>, path: Option<JsString>, port: Option<usize>, protocol: Option<JsString>, redirect: Option<JsString>, session: Option<Session>, url: Option<JsString>, ) -> ClientRequestOptions
pub fn host(&self) -> Option<JsString>
pub fn set_host(&mut self, value: Option<JsString>)
pub fn hostname(&self) -> Option<JsString>
pub fn set_hostname(&mut self, value: Option<JsString>)
pub fn method(&self) -> Option<JsString>
pub fn set_method(&mut self, value: Option<JsString>)
pub fn partition(&self) -> Option<JsString>
pub fn set_partition(&mut self, value: Option<JsString>)
pub fn path(&self) -> Option<JsString>
pub fn set_path(&mut self, value: Option<JsString>)
pub fn port(&self) -> Option<usize>
pub fn set_port(&mut self, value: Option<usize>)
pub fn protocol(&self) -> Option<JsString>
pub fn set_protocol(&mut self, value: Option<JsString>)
pub fn redirect(&self) -> Option<JsString>
pub fn set_redirect(&mut self, value: Option<JsString>)
pub fn session(&self) -> Option<Session>
pub fn set_session(&mut self, value: Option<Session>)
pub fn url(&self) -> Option<JsString>
pub fn set_url(&mut self, value: Option<JsString>)
Trait Implementations§
Source§impl Clone for ClientRequestOptions
impl Clone for ClientRequestOptions
Source§fn clone(&self) -> ClientRequestOptions
fn clone(&self) -> ClientRequestOptions
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 ClientRequestOptions
impl Debug for ClientRequestOptions
Source§impl Default for ClientRequestOptions
impl Default for ClientRequestOptions
Source§fn default() -> ClientRequestOptions
fn default() -> ClientRequestOptions
Returns the “default value” for a type. Read more
Source§impl From<ClientRequestOptions> for JsValue
impl From<ClientRequestOptions> for JsValue
Source§fn from(value: ClientRequestOptions) -> Self
fn from(value: ClientRequestOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ClientRequestOptions
impl FromWasmAbi for ClientRequestOptions
Source§impl IntoWasmAbi for ClientRequestOptions
impl IntoWasmAbi for ClientRequestOptions
Source§impl RefFromWasmAbi for ClientRequestOptions
impl RefFromWasmAbi for ClientRequestOptions
Source§type Anchor = RcRef<ClientRequestOptions>
type Anchor = RcRef<ClientRequestOptions>
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 VectorFromWasmAbi for ClientRequestOptions
impl VectorFromWasmAbi for ClientRequestOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ClientRequestOptions]>
Source§impl VectorIntoJsValue for ClientRequestOptions
impl VectorIntoJsValue for ClientRequestOptions
fn vector_into_jsvalue(vector: Box<[ClientRequestOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for ClientRequestOptions
impl VectorIntoWasmAbi for ClientRequestOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ClientRequestOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for ClientRequestOptions
impl WasmDescribeVector for ClientRequestOptions
impl SupportsConstructor for ClientRequestOptions
impl SupportsInstanceProperty for ClientRequestOptions
impl SupportsStaticProperty for ClientRequestOptions
Auto Trait Implementations§
impl Freeze for ClientRequestOptions
impl RefUnwindSafe for ClientRequestOptions
impl !Send for ClientRequestOptions
impl !Sync for ClientRequestOptions
impl Unpin for ClientRequestOptions
impl UnwindSafe for ClientRequestOptions
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
.