pub trait CryptoMethods<D>where
D: DomTypes,{
// Required methods
fn Subtle(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::SubtleCrypto>>;
fn GetRandomValues(
&self,
cx: &mut JSContext,
array: CustomAutoRooterGuard<'_, TypedArray<ArrayBufferViewU8, *mut JSObject>>,
) -> Result<RootedTraceableBox<TypedArray<ArrayBufferViewU8, Box<Heap<*mut JSObject>>>>, Error>;
fn RandomUUID(&self) -> DOMString;
}Required Methods§
fn Subtle(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::SubtleCrypto>>
fn GetRandomValues( &self, cx: &mut JSContext, array: CustomAutoRooterGuard<'_, TypedArray<ArrayBufferViewU8, *mut JSObject>>, ) -> Result<RootedTraceableBox<TypedArray<ArrayBufferViewU8, Box<Heap<*mut JSObject>>>>, Error>
fn RandomUUID(&self) -> DOMString
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".