Struct encryptodon::Keys

source ยท
pub struct Keys { /* private fields */ }

Implementationsยง

sourceยง

impl Keys

source

pub fn public(&self) -> String

source

pub fn private(&self) -> String

Trait Implementationsยง

sourceยง

impl From<Keys> for JsValue

sourceยง

fn from(value: Keys) -> Self

Converts to this type from the input type.
sourceยง

impl FromWasmAbi for Keys

ยง

type Abi = u32

The wasm ABI type that this converts from when coming back out from the ABI boundary.
sourceยง

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
sourceยง

impl IntoWasmAbi for Keys

ยง

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI boundary.
sourceยง

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary.
sourceยง

impl LongRefFromWasmAbi for Keys

ยง

type Abi = u32

Same as RefFromWasmAbi::Abi
ยง

type Anchor = Ref<'static, Keys>

Same as RefFromWasmAbi::Anchor
sourceยง

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
sourceยง

impl OptionFromWasmAbi for Keys

sourceยง

fn is_none(abi: &Self::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 Keys

sourceยง

fn none() -> Self::Abi

Returns an ABI instance indicating โ€œnoneโ€, which JS will interpret as the None branch of this option. Read more
sourceยง

impl RefFromWasmAbi for Keys

ยง

type Abi = u32

The wasm ABI type references to Self are recovered from.
ยง

type Anchor = Ref<'static, Keys>

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: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
sourceยง

impl RefMutFromWasmAbi for Keys

ยง

type Abi = u32

Same as RefFromWasmAbi::Abi
ยง

type Anchor = RefMut<'static, Keys>

Same as RefFromWasmAbi::Anchor
sourceยง

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
sourceยง

impl TryFromJsValue for Keys

ยง

type Error = JsValue

The type returned in the event of a conversion error.
sourceยง

fn try_from_js_value(value: JsValue) -> Result<Self, Self::Error>

Performs the conversion.
sourceยง

impl VectorFromWasmAbi for Keys

ยง

type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi

sourceยง

unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Keys]>

sourceยง

impl VectorIntoWasmAbi for Keys

ยง

type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi

sourceยง

fn vector_into_abi(vector: Box<[Keys]>) -> Self::Abi

sourceยง

impl WasmDescribe for Keys

sourceยง

impl WasmDescribeVector for Keys

Auto Trait Implementationsยง

Blanket Implementationsยง

sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
sourceยง

impl<T> From<T> for T

sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

sourceยง

impl<T> ReturnWasmAbi for T
where T: IntoWasmAbi,

ยง

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
sourceยง

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.
sourceยง

impl<T> Same for T

ยง

type Output = T

Should always be Self
sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

ยง

type Error = Infallible

The type returned in the event of a conversion error.
sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

ยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
ยง

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

ยง

fn vzip(self) -> V