pub enum WasmKeyType {
Ed25519,
P256,
Secp256k1,
}
Expand description
Key type enumeration for WASM
Variants§
Trait Implementations§
Source§impl From<WasmKeyType> for JsValue
impl From<WasmKeyType> for JsValue
Source§fn from(value: WasmKeyType) -> Self
fn from(value: WasmKeyType) -> Self
Converts to this type from the input type.
Source§impl From<WasmKeyType> for KeyType
impl From<WasmKeyType> for KeyType
Source§fn from(key_type: WasmKeyType) -> Self
fn from(key_type: WasmKeyType) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmKeyType
impl FromWasmAbi for WasmKeyType
Source§impl IntoWasmAbi for WasmKeyType
impl IntoWasmAbi for WasmKeyType
Source§impl OptionFromWasmAbi for WasmKeyType
impl OptionFromWasmAbi for WasmKeyType
Source§impl OptionIntoWasmAbi for WasmKeyType
impl OptionIntoWasmAbi for WasmKeyType
Source§impl TryFromJsValue for WasmKeyType
impl TryFromJsValue for WasmKeyType
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <WasmKeyType as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <WasmKeyType as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for WasmKeyType
impl VectorFromWasmAbi for WasmKeyType
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmKeyType]>
Source§impl VectorIntoJsValue for WasmKeyType
impl VectorIntoJsValue for WasmKeyType
fn vector_into_jsvalue(vector: Box<[WasmKeyType]>) -> JsValue
Source§impl VectorIntoWasmAbi for WasmKeyType
impl VectorIntoWasmAbi for WasmKeyType
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmKeyType]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmKeyType
impl WasmDescribeVector for WasmKeyType
Auto Trait Implementations§
impl Freeze for WasmKeyType
impl RefUnwindSafe for WasmKeyType
impl Send for WasmKeyType
impl Sync for WasmKeyType
impl Unpin for WasmKeyType
impl UnwindSafe for WasmKeyType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.