pub trait ServoInternalsMethods<D>where
D: DomTypes,{
// Required methods
fn ReportMemory(
&self,
realm: &mut CurrentRealm<'_>,
) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot;
fn GarbageCollectAllContexts(&self);
fn PreferenceList(&self) -> Vec<USVString>;
fn PreferenceType(&self, name: USVString) -> Result<USVString, Error>;
fn DefaultPreferenceValue(
&self,
cx: &mut JSContext,
name: USVString,
rval: MutableHandle<'_, Value>,
) -> Result<(), Error>;
fn GetPreference(
&self,
cx: &mut JSContext,
name: USVString,
rval: MutableHandle<'_, Value>,
) -> Result<(), Error>;
fn GetStringPreference(&self, name: USVString) -> Result<USVString, Error>;
fn GetIntPreference(&self, name: USVString) -> Result<i64, Error>;
fn GetBoolPreference(&self, name: USVString) -> Result<bool, Error>;
fn SetStringPreference(&self, name: USVString, value: USVString);
fn SetIntPreference(&self, name: USVString, value: i64);
fn SetBoolPreference(&self, name: USVString, value: bool);
}Required Methods§
fn ReportMemory( &self, realm: &mut CurrentRealm<'_>, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot
fn GarbageCollectAllContexts(&self)
fn PreferenceList(&self) -> Vec<USVString>
fn PreferenceType(&self, name: USVString) -> Result<USVString, Error>
fn DefaultPreferenceValue( &self, cx: &mut JSContext, name: USVString, rval: MutableHandle<'_, Value>, ) -> Result<(), Error>
fn GetPreference( &self, cx: &mut JSContext, name: USVString, rval: MutableHandle<'_, Value>, ) -> Result<(), Error>
fn GetStringPreference(&self, name: USVString) -> Result<USVString, Error>
fn GetIntPreference(&self, name: USVString) -> Result<i64, Error>
fn GetBoolPreference(&self, name: USVString) -> Result<bool, Error>
fn SetStringPreference(&self, name: USVString, value: USVString)
fn SetIntPreference(&self, name: USVString, value: i64)
fn SetBoolPreference(&self, name: USVString, value: bool)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".