pub struct VRFKeyHash(/* private fields */);Implementations§
Source§impl VRFKeyHash
impl VRFKeyHash
Source§impl VRFKeyHash
impl VRFKeyHash
Sourcepub fn to_raw_bytes(&self) -> Vec<u8> ⓘ
pub fn to_raw_bytes(&self) -> Vec<u8> ⓘ
- Direct raw bytes without any CBOR structure
Sourcepub fn from_raw_bytes(bytes: &[u8]) -> Result<VRFKeyHash, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<VRFKeyHash, JsError>
- Parse from the direct raw bytes, without any CBOR structure
Trait Implementations§
Source§impl AsRef<VRFKeyHash> for VRFKeyHash
impl AsRef<VRFKeyHash> for VRFKeyHash
Source§fn as_ref(&self) -> &VRFKeyHash
fn as_ref(&self) -> &VRFKeyHash
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for VRFKeyHash
impl Clone for VRFKeyHash
Source§fn clone(&self) -> VRFKeyHash
fn clone(&self) -> VRFKeyHash
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VRFKeyHash
impl Debug for VRFKeyHash
Source§impl From<VRFKeyHash> for JsValue
impl From<VRFKeyHash> for JsValue
Source§fn from(value: VRFKeyHash) -> Self
fn from(value: VRFKeyHash) -> Self
Converts to this type from the input type.
Source§impl From<VRFKeyHash> for VRFKeyHash
impl From<VRFKeyHash> for VRFKeyHash
Source§fn from(inner: VRFKeyHash) -> Self
fn from(inner: VRFKeyHash) -> Self
Converts to this type from the input type.
Source§impl From<VRFKeyHash> for VRFKeyHash
impl From<VRFKeyHash> for VRFKeyHash
Source§fn from(wrapper: VRFKeyHash) -> VRFKeyHash
fn from(wrapper: VRFKeyHash) -> VRFKeyHash
Converts to this type from the input type.
Source§impl FromWasmAbi for VRFKeyHash
impl FromWasmAbi for VRFKeyHash
Source§impl IntoWasmAbi for VRFKeyHash
impl IntoWasmAbi for VRFKeyHash
Source§impl LongRefFromWasmAbi for VRFKeyHash
impl LongRefFromWasmAbi for VRFKeyHash
Source§impl OptionFromWasmAbi for VRFKeyHash
impl OptionFromWasmAbi for VRFKeyHash
Source§impl OptionIntoWasmAbi for VRFKeyHash
impl OptionIntoWasmAbi for VRFKeyHash
Source§impl RefFromWasmAbi for VRFKeyHash
impl RefFromWasmAbi for VRFKeyHash
Source§type Anchor = RcRef<VRFKeyHash>
type Anchor = RcRef<VRFKeyHash>
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§impl RefMutFromWasmAbi for VRFKeyHash
impl RefMutFromWasmAbi for VRFKeyHash
Source§impl TryFromJsValue for VRFKeyHash
impl TryFromJsValue for VRFKeyHash
Source§impl VectorFromWasmAbi for VRFKeyHash
impl VectorFromWasmAbi for VRFKeyHash
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[VRFKeyHash]>
Source§impl VectorIntoJsValue for VRFKeyHash
impl VectorIntoJsValue for VRFKeyHash
fn vector_into_jsvalue(vector: Box<[VRFKeyHash]>) -> JsValue
Source§impl VectorIntoWasmAbi for VRFKeyHash
impl VectorIntoWasmAbi for VRFKeyHash
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[VRFKeyHash]>) -> Self::Abi
Source§impl WasmDescribeVector for VRFKeyHash
impl WasmDescribeVector for VRFKeyHash
impl SupportsConstructor for VRFKeyHash
impl SupportsInstanceProperty for VRFKeyHash
impl SupportsStaticProperty for VRFKeyHash
Auto Trait Implementations§
impl Freeze for VRFKeyHash
impl RefUnwindSafe for VRFKeyHash
impl Send for VRFKeyHash
impl Sync for VRFKeyHash
impl Unpin for VRFKeyHash
impl UnwindSafe for VRFKeyHash
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.