Struct ockam_vault_sync_core::VaultSync [−][src]
pub struct VaultSync { /* fields omitted */ }
Expand description
Vault sync wrapper
Implementations
impl VaultSync
[src]
impl VaultSync
[src]pub fn start_another(&self) -> Result<Self>
[src]
pub fn start_another(&self) -> Result<Self>
[src]Start another Vault at the same address.
impl VaultSync
[src]
impl VaultSync
[src]pub fn create_with_worker(ctx: &Context, vault: &Address) -> Result<Self>
[src]
pub fn create_with_worker(ctx: &Context, vault: &Address) -> Result<Self>
[src]Create and start a new Vault using Worker.
pub fn create<T: VaultTrait>(ctx: &Context, vault: T) -> Result<Self>
[src]
pub fn create<T: VaultTrait>(ctx: &Context, vault: T) -> Result<Self>
[src]Start a Vault.
Trait Implementations
impl AsymmetricVault for VaultSync
[src]
impl AsymmetricVault for VaultSync
[src]impl Hasher for VaultSync
[src]
impl Hasher for VaultSync
[src]impl KeyIdVault for VaultSync
[src]
impl KeyIdVault for VaultSync
[src]impl SecretVault for VaultSync
[src]
impl SecretVault for VaultSync
[src]fn secret_generate(&mut self, attributes: SecretAttributes) -> Result<Secret>
[src]
fn secret_generate(&mut self, attributes: SecretAttributes) -> Result<Secret>
[src]Generate fresh secret with given attributes
fn secret_import(
&mut self,
secret: &[u8],
attributes: SecretAttributes
) -> Result<Secret>
[src]
fn secret_import(
&mut self,
secret: &[u8],
attributes: SecretAttributes
) -> Result<Secret>
[src]Import a secret with given attributes from binary form into the vault
fn secret_export(&mut self, context: &Secret) -> Result<SecretKey>
[src]
fn secret_export(&mut self, context: &Secret) -> Result<SecretKey>
[src]Export a secret key to the binary form represented as SecretKey
fn secret_attributes_get(
&mut self,
context: &Secret
) -> Result<SecretAttributes>
[src]
fn secret_attributes_get(
&mut self,
context: &Secret
) -> Result<SecretAttributes>
[src]Get the attributes for a secret
fn secret_public_key_get(&mut self, context: &Secret) -> Result<PublicKey>
[src]
fn secret_public_key_get(&mut self, context: &Secret) -> Result<PublicKey>
[src]Return the associated public key given the secret key
fn secret_destroy(&mut self, context: Secret) -> Result<()>
[src]
fn secret_destroy(&mut self, context: Secret) -> Result<()>
[src]Remove a secret from the vault
impl SymmetricVault for VaultSync
[src]
impl SymmetricVault for VaultSync
[src]Auto Trait Implementations
impl !RefUnwindSafe for VaultSync
impl Send for VaultSync
impl Sync for VaultSync
impl Unpin for VaultSync
impl !UnwindSafe for VaultSync
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,