pub trait LocationMethods<D: DomTypes> {
Show 20 methods
// Required methods
fn GetHref(&self) -> Fallible<USVString>;
fn SetHref(&self, cx: &mut JSContext, value: USVString) -> ErrorResult;
fn GetOrigin(&self) -> Fallible<USVString>;
fn GetProtocol(&self) -> Fallible<USVString>;
fn SetProtocol(&self, cx: &mut JSContext, value: USVString) -> ErrorResult;
fn GetHost(&self) -> Fallible<USVString>;
fn SetHost(&self, cx: &mut JSContext, value: USVString) -> ErrorResult;
fn GetHostname(&self) -> Fallible<USVString>;
fn SetHostname(&self, cx: &mut JSContext, value: USVString) -> ErrorResult;
fn GetPort(&self) -> Fallible<USVString>;
fn SetPort(&self, cx: &mut JSContext, value: USVString) -> ErrorResult;
fn GetPathname(&self) -> Fallible<USVString>;
fn SetPathname(&self, cx: &mut JSContext, value: USVString) -> ErrorResult;
fn GetSearch(&self) -> Fallible<USVString>;
fn SetSearch(&self, cx: &mut JSContext, value: USVString) -> ErrorResult;
fn GetHash(&self) -> Fallible<USVString>;
fn SetHash(&self, cx: &mut JSContext, value: USVString) -> ErrorResult;
fn Assign(&self, cx: &mut JSContext, url: USVString) -> Fallible<()>;
fn Replace(&self, cx: &mut JSContext, url: USVString) -> Fallible<()>;
fn Reload(&self, cx: &mut JSContext) -> Fallible<()>;
}Required Methods§
fn GetHref(&self) -> Fallible<USVString>
fn SetHref(&self, cx: &mut JSContext, value: USVString) -> ErrorResult
fn GetOrigin(&self) -> Fallible<USVString>
fn GetProtocol(&self) -> Fallible<USVString>
fn SetProtocol(&self, cx: &mut JSContext, value: USVString) -> ErrorResult
fn GetHost(&self) -> Fallible<USVString>
fn SetHost(&self, cx: &mut JSContext, value: USVString) -> ErrorResult
fn GetHostname(&self) -> Fallible<USVString>
fn SetHostname(&self, cx: &mut JSContext, value: USVString) -> ErrorResult
fn GetPort(&self) -> Fallible<USVString>
fn SetPort(&self, cx: &mut JSContext, value: USVString) -> ErrorResult
fn GetPathname(&self) -> Fallible<USVString>
fn SetPathname(&self, cx: &mut JSContext, value: USVString) -> ErrorResult
fn GetSearch(&self) -> Fallible<USVString>
fn SetSearch(&self, cx: &mut JSContext, value: USVString) -> ErrorResult
fn GetHash(&self) -> Fallible<USVString>
fn SetHash(&self, cx: &mut JSContext, value: USVString) -> ErrorResult
fn Assign(&self, cx: &mut JSContext, url: USVString) -> Fallible<()>
fn Replace(&self, cx: &mut JSContext, url: USVString) -> Fallible<()>
fn Reload(&self, cx: &mut JSContext) -> Fallible<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".