pub struct VRFVkey(/* private fields */);Implementations§
Source§impl VRFVkey
impl VRFVkey
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<VRFVkey, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<VRFVkey, JsError>
- Parse from the direct raw bytes, without any CBOR structure
Trait Implementations§
Source§impl FromWasmAbi for VRFVkey
impl FromWasmAbi for VRFVkey
Source§impl IntoWasmAbi for VRFVkey
impl IntoWasmAbi for VRFVkey
Source§impl LongRefFromWasmAbi for VRFVkey
impl LongRefFromWasmAbi for VRFVkey
Source§impl OptionFromWasmAbi for VRFVkey
impl OptionFromWasmAbi for VRFVkey
Source§impl OptionIntoWasmAbi for VRFVkey
impl OptionIntoWasmAbi for VRFVkey
Source§impl RefFromWasmAbi for VRFVkey
impl RefFromWasmAbi for VRFVkey
Source§type Anchor = RcRef<VRFVkey>
type Anchor = RcRef<VRFVkey>
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: <VRFVkey as RefFromWasmAbi>::Abi,
) -> <VRFVkey as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <VRFVkey as RefFromWasmAbi>::Abi, ) -> <VRFVkey as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for VRFVkey
impl RefMutFromWasmAbi for VRFVkey
Source§impl TryFromJsValue for VRFVkey
impl TryFromJsValue for VRFVkey
Source§impl VectorFromWasmAbi for VRFVkey
impl VectorFromWasmAbi for VRFVkey
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <VRFVkey as VectorFromWasmAbi>::Abi, ) -> Box<[VRFVkey]>
Source§impl VectorIntoWasmAbi for VRFVkey
impl VectorIntoWasmAbi for VRFVkey
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[VRFVkey]>, ) -> <VRFVkey as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for VRFVkey
impl RefUnwindSafe for VRFVkey
impl Send for VRFVkey
impl Sync for VRFVkey
impl Unpin for VRFVkey
impl UnwindSafe for VRFVkey
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.