pub struct SigSecretKey {
pub data: Vec<u8>,
}Expand description
Signature secret key with automatic memory zeroization
Fields§
§data: Vec<u8>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SigSecretKey
impl<'de> Deserialize<'de> for SigSecretKey
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SigSecretKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SigSecretKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SigSecretKey> for JsValue
impl From<SigSecretKey> for JsValue
Source§fn from(value: SigSecretKey) -> JsValue
fn from(value: SigSecretKey) -> JsValue
Converts to this type from the input type.
Source§impl FromWasmAbi for SigSecretKey
impl FromWasmAbi for SigSecretKey
Source§type Abi = WasmPtr<WasmRefCell<SigSecretKey>>
type Abi = WasmPtr<WasmRefCell<SigSecretKey>>
The Wasm ABI type that this converts from when coming back out from the
ABI boundary.
Source§unsafe fn from_abi(js: <SigSecretKey as FromWasmAbi>::Abi) -> SigSecretKey
unsafe fn from_abi(js: <SigSecretKey as FromWasmAbi>::Abi) -> SigSecretKey
Source§impl IntoWasmAbi for SigSecretKey
impl IntoWasmAbi for SigSecretKey
Source§type Abi = WasmPtr<WasmRefCell<SigSecretKey>>
type Abi = WasmPtr<WasmRefCell<SigSecretKey>>
The Wasm ABI type that this converts into when crossing the ABI
boundary.
Source§fn into_abi(self) -> <SigSecretKey as IntoWasmAbi>::Abi
fn into_abi(self) -> <SigSecretKey as IntoWasmAbi>::Abi
Convert
self into Self::Abi so that it can be sent across the wasm
ABI boundary.Source§impl LongRefFromWasmAbi for SigSecretKey
impl LongRefFromWasmAbi for SigSecretKey
Source§type Abi = WasmPtr<WasmRefCell<SigSecretKey>>
type Abi = WasmPtr<WasmRefCell<SigSecretKey>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<SigSecretKey>
type Anchor = RcRef<SigSecretKey>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(
js: <SigSecretKey as LongRefFromWasmAbi>::Abi,
) -> <SigSecretKey as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <SigSecretKey as LongRefFromWasmAbi>::Abi, ) -> <SigSecretKey as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for SigSecretKey
impl OptionFromWasmAbi for SigSecretKey
Source§fn is_none(abi: &<SigSecretKey as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<SigSecretKey as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.Source§impl OptionIntoWasmAbi for SigSecretKey
impl OptionIntoWasmAbi for SigSecretKey
Source§fn none() -> <SigSecretKey as IntoWasmAbi>::Abi
fn none() -> <SigSecretKey as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read moreSource§impl RefFromWasmAbi for SigSecretKey
impl RefFromWasmAbi for SigSecretKey
Source§type Abi = WasmPtr<WasmRefCell<SigSecretKey>>
type Abi = WasmPtr<WasmRefCell<SigSecretKey>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<SigSecretKey>
type Anchor = RcRef<SigSecretKey>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§unsafe fn ref_from_abi(
js: <SigSecretKey as RefFromWasmAbi>::Abi,
) -> <SigSecretKey as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <SigSecretKey as RefFromWasmAbi>::Abi, ) -> <SigSecretKey as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for SigSecretKey
impl RefMutFromWasmAbi for SigSecretKey
Source§type Abi = WasmPtr<WasmRefCell<SigSecretKey>>
type Abi = WasmPtr<WasmRefCell<SigSecretKey>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<SigSecretKey>
type Anchor = RcRefMut<SigSecretKey>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(
js: <SigSecretKey as RefMutFromWasmAbi>::Abi,
) -> <SigSecretKey as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <SigSecretKey as RefMutFromWasmAbi>::Abi, ) -> <SigSecretKey as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl Serialize for SigSecretKey
impl Serialize for SigSecretKey
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFromJsValue for SigSecretKey
impl TryFromJsValue for SigSecretKey
Source§fn try_from_js_value(value: JsValue) -> Result<SigSecretKey, JsValue>
fn try_from_js_value(value: JsValue) -> Result<SigSecretKey, JsValue>
Performs the conversion.
Source§fn try_from_js_value_ref(value: &JsValue) -> Option<SigSecretKey>
fn try_from_js_value_ref(value: &JsValue) -> Option<SigSecretKey>
Performs the conversion.
Source§impl VectorFromWasmAbi for SigSecretKey
impl VectorFromWasmAbi for SigSecretKey
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <SigSecretKey as VectorFromWasmAbi>::Abi, ) -> Box<[SigSecretKey]>
Source§impl VectorIntoWasmAbi for SigSecretKey
impl VectorIntoWasmAbi for SigSecretKey
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[SigSecretKey]>, ) -> <SigSecretKey as VectorIntoWasmAbi>::Abi
Source§impl Zeroize for SigSecretKey
Available on crate feature alloc only.
impl Zeroize for SigSecretKey
Available on crate feature
alloc only.impl ZeroizeOnDrop for SigSecretKey
Available on crate feature
alloc only.Auto Trait Implementations§
impl Freeze for SigSecretKey
impl RefUnwindSafe for SigSecretKey
impl Send for SigSecretKey
impl Sync for SigSecretKey
impl Unpin for SigSecretKey
impl UnsafeUnpin for SigSecretKey
impl UnwindSafe for SigSecretKey
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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::AbiSource§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.