pub struct AgentClient;Expand description
Content-key store backed by the platform session agent.
On Unix this uses the crate’s Unix-domain-socket transport. On Windows it uses the named-pipe transport. Unsupported platforms expose a client that cannot store keys and returns cache misses for lookups.
Trait Implementations§
Source§impl Clone for AgentClient
impl Clone for AgentClient
Source§fn clone(&self) -> AgentClient
fn clone(&self) -> AgentClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ContentKeyStore for AgentClient
impl ContentKeyStore for AgentClient
Source§fn get_content_key(
&self,
lockbox_id: LockboxId,
) -> Result<Option<SecureVec>, Error>
fn get_content_key( &self, lockbox_id: LockboxId, ) -> Result<Option<SecureVec>, Error>
Returns the cached content key for
lockbox_id, if one is available.Source§fn put_content_key(
&self,
lockbox_id: LockboxId,
key: SecureVec,
) -> Result<(), Error>
fn put_content_key( &self, lockbox_id: LockboxId, key: SecureVec, ) -> Result<(), Error>
Stores the opened content key for
lockbox_id.Source§fn put_content_key_for_path(
&self,
lockbox_id: LockboxId,
key: SecureVec,
path: &Path,
) -> Result<(), Error>
fn put_content_key_for_path( &self, lockbox_id: LockboxId, key: SecureVec, path: &Path, ) -> Result<(), Error>
Stores the opened content key with a display path for diagnostics.
Source§fn put_content_key_for_path_with_ttl(
&self,
lockbox_id: LockboxId,
key: SecureVec,
path: &Path,
ttl_seconds: u64,
) -> Result<(), Error>
fn put_content_key_for_path_with_ttl( &self, lockbox_id: LockboxId, key: SecureVec, path: &Path, ttl_seconds: u64, ) -> Result<(), Error>
Stores the opened content key with an explicit cache lifetime.
impl Copy for AgentClient
Source§impl Debug for AgentClient
impl Debug for AgentClient
Source§impl Default for AgentClient
impl Default for AgentClient
Source§fn default() -> AgentClient
fn default() -> AgentClient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentClient
impl RefUnwindSafe for AgentClient
impl Send for AgentClient
impl Sync for AgentClient
impl Unpin for AgentClient
impl UnsafeUnpin for AgentClient
impl UnwindSafe for AgentClient
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