TryFromWithCx

Trait TryFromWithCx 

Source
trait TryFromWithCx<T>: Sized {
    type Error;

    // Required method
    fn try_from_with_cx(
        value: T,
        cx: &mut JSContext,
    ) -> Result<Self, Self::Error>;
}
Expand description

Alternative to std::convert::TryFrom, with &mut js::context::JSContext

Required Associated Types§

Required Methods§

Source

fn try_from_with_cx(value: T, cx: &mut JSContext) -> Result<Self, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleAeadParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleAesCbcParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleAesCtrParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleAesDerivedKeyParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleAesGcmParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleAesKeyGenParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleAlgorithm

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleArgon2Params

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleCShakeParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleContextParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleEcKeyGenParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleEcKeyImportParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleEcdhKeyDeriveParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleEcdsaParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleHkdfParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleHmacImportParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleHmacKeyGenParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtlePbkdf2Params

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleRsaHashedImportParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleRsaHashedKeyGenParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleRsaOaepParams

Source§

impl<'a> TryFromWithCx<Handle<'a, Value>> for SubtleRsaPssParams