pub trait CryptoMethods<D: DomTypes> {
// Required methods
fn Subtle(&self, cx: &mut JSContext) -> DomRoot<D::SubtleCrypto>;
fn GetRandomValues(
&self,
cx: SafeJSContext,
array: CustomAutoRooterGuard<'_, ArrayBufferView>,
) -> Fallible<RootedTraceableBox<HeapArrayBufferView>>;
fn RandomUUID(&self) -> DOMString;
}Required Methods§
fn Subtle(&self, cx: &mut JSContext) -> DomRoot<D::SubtleCrypto>
fn GetRandomValues( &self, cx: SafeJSContext, array: CustomAutoRooterGuard<'_, ArrayBufferView>, ) -> Fallible<RootedTraceableBox<HeapArrayBufferView>>
fn RandomUUID(&self) -> DOMString
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".