pub struct CryptManagementSynchronousProxy { /* private fields */ }
Implementations§
Source§impl CryptManagementSynchronousProxy
impl CryptManagementSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CryptManagementEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CryptManagementEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn add_wrapping_key(
&self,
wrapping_key_id: &[u8; 16],
key: &[u8],
___deadline: MonotonicInstant,
) -> Result<CryptManagementAddWrappingKeyResult, Error>
pub fn add_wrapping_key( &self, wrapping_key_id: &[u8; 16], key: &[u8], ___deadline: MonotonicInstant, ) -> Result<CryptManagementAddWrappingKeyResult, Error>
Adds a new wrapping key to the Crypt service. The new key will immediately be available for unwrapping keys (Crypt::UnwrapKeys) but won’t be used for wrapping keys until CryptManagement::SetActiveKeys is called.
Sourcepub fn set_active_key(
&self,
purpose: KeyPurpose,
wrapping_key_id: &[u8; 16],
___deadline: MonotonicInstant,
) -> Result<CryptManagementSetActiveKeyResult, Error>
pub fn set_active_key( &self, purpose: KeyPurpose, wrapping_key_id: &[u8; 16], ___deadline: MonotonicInstant, ) -> Result<CryptManagementSetActiveKeyResult, Error>
Updates the key which will be used for wrapping keys (Crypt::CreateKey). purpose
describes which active key to modify.
Sourcepub fn forget_wrapping_key(
&self,
wrapping_key_id: &[u8; 16],
___deadline: MonotonicInstant,
) -> Result<CryptManagementForgetWrappingKeyResult, Error>
pub fn forget_wrapping_key( &self, wrapping_key_id: &[u8; 16], ___deadline: MonotonicInstant, ) -> Result<CryptManagementForgetWrappingKeyResult, Error>
Forgets a wrapping key, preventing its use for future key-unwrapping. All future calls to Crypt::UnwrapKeys with that wrapping key ID will fail. If either the data or metadata part of the key is active, an error is returned.
Trait Implementations§
Source§impl SynchronousProxy for CryptManagementSynchronousProxy
impl SynchronousProxy for CryptManagementSynchronousProxy
Source§type Proxy = CryptManagementProxy
type Proxy = CryptManagementProxy
The async proxy for the same protocol.
Source§type Protocol = CryptManagementMarker
type Protocol = CryptManagementMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for CryptManagementSynchronousProxy
impl RefUnwindSafe for CryptManagementSynchronousProxy
impl Send for CryptManagementSynchronousProxy
impl Sync for CryptManagementSynchronousProxy
impl Unpin for CryptManagementSynchronousProxy
impl UnwindSafe for CryptManagementSynchronousProxy
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