#[repr(transparent)]pub struct Url { /* private fields */ }
Expand description
The URL
object
This API requires the following crate features to be activated: Url
Implementations§
source§impl Url
impl Url
source§impl Url
impl Url
source§impl Url
impl Url
sourcepub fn create_object_url_with_source(
source: &MediaSource
) -> Result<String, JsValue>
pub fn create_object_url_with_source(
source: &MediaSource
) -> Result<String, JsValue>
The createObjectURL()
method
This API requires the following crate features to be activated: MediaSource
, Url
source§impl Url
impl Url
source§impl Url
impl Url
source§impl Url
impl Url
source§impl Url
impl Url
source§impl Url
impl Url
source§impl Url
impl Url
source§impl Url
impl Url
sourcepub fn set_protocol(&self, protocol: &str)
pub fn set_protocol(&self, protocol: &str)
The protocol
setter
This API requires the following crate features to be activated: Url
source§impl Url
impl Url
source§impl Url
impl Url
sourcepub fn set_username(&self, username: &str)
pub fn set_username(&self, username: &str)
The username
setter
This API requires the following crate features to be activated: Url
source§impl Url
impl Url
source§impl Url
impl Url
sourcepub fn set_password(&self, password: &str)
pub fn set_password(&self, password: &str)
The password
setter
This API requires the following crate features to be activated: Url
source§impl Url
impl Url
source§impl Url
impl Url
source§impl Url
impl Url
source§impl Url
impl Url
sourcepub fn set_hostname(&self, hostname: &str)
pub fn set_hostname(&self, hostname: &str)
The hostname
setter
This API requires the following crate features to be activated: Url
source§impl Url
impl Url
source§impl Url
impl Url
source§impl Url
impl Url
source§impl Url
impl Url
sourcepub fn set_pathname(&self, pathname: &str)
pub fn set_pathname(&self, pathname: &str)
The pathname
setter
This API requires the following crate features to be activated: Url
source§impl Url
impl Url
source§impl Url
impl Url
sourcepub fn set_search(&self, search: &str)
pub fn set_search(&self, search: &str)
The search
setter
This API requires the following crate features to be activated: Url
source§impl Url
impl Url
sourcepub fn search_params(&self) -> UrlSearchParams
pub fn search_params(&self) -> UrlSearchParams
The searchParams
getter
This API requires the following crate features to be activated: Url
, UrlSearchParams
Trait Implementations§
source§impl FromWasmAbi for Url
impl FromWasmAbi for Url
source§impl<'a> IntoWasmAbi for &'a Url
impl<'a> IntoWasmAbi for &'a Url
source§impl IntoWasmAbi for Url
impl IntoWasmAbi for Url
source§impl JsCast for Url
impl JsCast for Url
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for Url
impl OptionFromWasmAbi for Url
source§impl<'a> OptionIntoWasmAbi for &'a Url
impl<'a> OptionIntoWasmAbi for &'a Url
source§impl OptionIntoWasmAbi for Url
impl OptionIntoWasmAbi for Url
source§impl RefFromWasmAbi for Url
impl RefFromWasmAbi for Url
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<Url>
type Anchor = ManuallyDrop<Url>
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. Read moreAuto Trait Implementations§
impl RefUnwindSafe for Url
impl Send for Url
impl Sync for Url
impl Unpin for Url
impl UnwindSafe for Url
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more