ServoInternalsMethods

pub trait ServoInternalsMethods<D>
where D: DomTypes,
{ // Required methods fn ReportMemory( &self, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<<D as DomTypes>::Promise>; fn PreferenceList(&self) -> Vec<USVString>; fn PreferenceType(&self, name: USVString) -> Result<USVString, Error>; fn DefaultPreferenceValue( &self, cx: JSContext, name: USVString, rval: MutableHandle<'_, Value>, ) -> Result<(), Error>; fn GetPreference( &self, cx: 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§

Implementors§