Struct fidl_fuchsia_fxfs::CryptSynchronousProxy
source · pub struct CryptSynchronousProxy { /* private fields */ }
Implementations§
source§impl CryptSynchronousProxy
impl CryptSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<CryptEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<CryptEvent, 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 create_key(
&self,
owner: u64,
purpose: KeyPurpose,
___deadline: Time
) -> Result<CryptCreateKeyResult, Error>
pub fn create_key( &self, owner: u64, purpose: KeyPurpose, ___deadline: Time ) -> Result<CryptCreateKeyResult, Error>
Creates a new key wrapped with the key identified by wrapping_key_id
. owner
identifies
the owner of the key and must be supplied to UnwrapKeys
. The crypt service chooses a
wrapping_key_id
which must be supplied to UnwrapKeys. The wrapping_key_id
has no
meaning to Fxfs.
sourcepub fn unwrap_key(
&self,
wrapping_key_id: u64,
owner: u64,
key: &[u8],
___deadline: Time
) -> Result<CryptUnwrapKeyResult, Error>
pub fn unwrap_key( &self, wrapping_key_id: u64, owner: u64, key: &[u8], ___deadline: Time ) -> Result<CryptUnwrapKeyResult, Error>
Unwraps a key that is wrapped by the key identified by wrapping_key_id
. owner
must be
the same as that passed to CreateKey
. This can fail due to permission reasons, but an
incorrect key or owner will not fail; it will just return an unwrapped key that won’t
actually decrpyt the data.
Trait Implementations§
source§impl Debug for CryptSynchronousProxy
impl Debug for CryptSynchronousProxy
source§impl SynchronousProxy for CryptSynchronousProxy
impl SynchronousProxy for CryptSynchronousProxy
§type Proxy = CryptProxy
type Proxy = CryptProxy
The async proxy for the same protocol.
§type Protocol = CryptMarker
type Protocol = CryptMarker
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 CryptSynchronousProxy
impl RefUnwindSafe for CryptSynchronousProxy
impl Send for CryptSynchronousProxy
impl Sync for CryptSynchronousProxy
impl Unpin for CryptSynchronousProxy
impl UnwindSafe for CryptSynchronousProxy
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