pub struct JsMorpheusPlugin { /* private fields */ }
Expand description
Represents the Morpheus subtree in a given vault.
Implementations§
Source§impl JsMorpheusPlugin
impl JsMorpheusPlugin
Sourcepub fn init(vault: &mut JsVault, unlock_password: &str) -> Result<(), JsValue>
pub fn init(vault: &mut JsVault, unlock_password: &str) -> Result<(), JsValue>
Creates the Morpheus subtree in the vault. If the subtree already exists, an error will be thrown. An existing subtree has to be retrieved from the vault using {@link get}.
Sourcepub fn get(vault: &JsVault) -> Result<JsMorpheusPlugin, JsValue>
pub fn get(vault: &JsVault) -> Result<JsMorpheusPlugin, JsValue>
Retrieves an existing Morpheus subtree from the vault. If the subtree is missing, an error will be thrown. A new subtree can be created with {@link init}.
Sourcepub fn public(&self) -> Result<JsMorpheusPublic, JsValue>
pub fn public(&self) -> Result<JsMorpheusPublic, JsValue>
Accessor for the public keys in the Morpheus subtree.
Trait Implementations§
Source§impl From<BoundPlugin<Plugin, Public, Private>> for JsMorpheusPlugin
impl From<BoundPlugin<Plugin, Public, Private>> for JsMorpheusPlugin
Source§impl From<JsMorpheusPlugin> for JsValue
impl From<JsMorpheusPlugin> for JsValue
Source§fn from(value: JsMorpheusPlugin) -> Self
fn from(value: JsMorpheusPlugin) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for JsMorpheusPlugin
impl FromWasmAbi for JsMorpheusPlugin
Source§impl IntoWasmAbi for JsMorpheusPlugin
impl IntoWasmAbi for JsMorpheusPlugin
Source§impl OptionFromWasmAbi for JsMorpheusPlugin
impl OptionFromWasmAbi for JsMorpheusPlugin
Source§impl OptionIntoWasmAbi for JsMorpheusPlugin
impl OptionIntoWasmAbi for JsMorpheusPlugin
Source§impl RefFromWasmAbi for JsMorpheusPlugin
impl RefFromWasmAbi for JsMorpheusPlugin
Source§type Anchor = RcRef<JsMorpheusPlugin>
type Anchor = RcRef<JsMorpheusPlugin>
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 JsMorpheusPlugin
impl RefMutFromWasmAbi for JsMorpheusPlugin
Source§impl TryFromJsValue for JsMorpheusPlugin
impl TryFromJsValue for JsMorpheusPlugin
Source§impl VectorFromWasmAbi for JsMorpheusPlugin
impl VectorFromWasmAbi for JsMorpheusPlugin
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[JsMorpheusPlugin]>
Source§impl VectorIntoJsValue for JsMorpheusPlugin
impl VectorIntoJsValue for JsMorpheusPlugin
fn vector_into_jsvalue(vector: Box<[JsMorpheusPlugin]>) -> JsValue
Source§impl VectorIntoWasmAbi for JsMorpheusPlugin
impl VectorIntoWasmAbi for JsMorpheusPlugin
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[JsMorpheusPlugin]>) -> Self::Abi
Source§impl WasmDescribeVector for JsMorpheusPlugin
impl WasmDescribeVector for JsMorpheusPlugin
Source§impl Wraps<BoundPlugin<Plugin, Public, Private>> for JsMorpheusPlugin
impl Wraps<BoundPlugin<Plugin, Public, Private>> for JsMorpheusPlugin
impl SupportsConstructor for JsMorpheusPlugin
impl SupportsInstanceProperty for JsMorpheusPlugin
impl SupportsStaticProperty for JsMorpheusPlugin
Auto Trait Implementations§
impl Freeze for JsMorpheusPlugin
impl !RefUnwindSafe for JsMorpheusPlugin
impl !Send for JsMorpheusPlugin
impl !Sync for JsMorpheusPlugin
impl Unpin for JsMorpheusPlugin
impl !UnwindSafe for JsMorpheusPlugin
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> 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::Abi
Source§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
.