pub struct NonceHash(/* private fields */);Implementations§
Source§impl NonceHash
impl NonceHash
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<NonceHash, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<NonceHash, JsError>
- Parse from the direct raw bytes, without any CBOR structure
Trait Implementations§
Source§impl FromWasmAbi for NonceHash
impl FromWasmAbi for NonceHash
Source§impl IntoWasmAbi for NonceHash
impl IntoWasmAbi for NonceHash
Source§impl LongRefFromWasmAbi for NonceHash
impl LongRefFromWasmAbi for NonceHash
Source§impl OptionFromWasmAbi for NonceHash
impl OptionFromWasmAbi for NonceHash
Source§impl OptionIntoWasmAbi for NonceHash
impl OptionIntoWasmAbi for NonceHash
Source§impl RefFromWasmAbi for NonceHash
impl RefFromWasmAbi for NonceHash
Source§impl RefMutFromWasmAbi for NonceHash
impl RefMutFromWasmAbi for NonceHash
Source§impl TryFromJsValue for NonceHash
impl TryFromJsValue for NonceHash
Source§impl VectorFromWasmAbi for NonceHash
impl VectorFromWasmAbi for NonceHash
Source§impl VectorIntoWasmAbi for NonceHash
impl VectorIntoWasmAbi for NonceHash
impl SupportsConstructor for NonceHash
impl SupportsInstanceProperty for NonceHash
impl SupportsStaticProperty for NonceHash
Auto Trait Implementations§
impl Freeze for NonceHash
impl RefUnwindSafe for NonceHash
impl Send for NonceHash
impl Sync for NonceHash
impl Unpin for NonceHash
impl UnwindSafe for NonceHash
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.