pub struct TpmFetch;Available on crate feature
fetcher-tpm only.Expand description
Detection-only TPM 2.0 fetcher.
Always returns
Error::Acquisition in 1.0. Use the TEE
detection probe (detect_tee_capabilities)
to check whether a TPM is present at all.
§Examples
use key_vault::{FetchContext, KeyFetch, TpmFetch};
let fetcher = TpmFetch;
let err = fetcher.fetch(&FetchContext::new("k")).unwrap_err();
// 1.0 ships detection only — full TPM integration is in the 1.x roadmap.
assert!(format!("{err}").contains("TPM"));Trait Implementations§
Source§impl KeyFetch for TpmFetch
impl KeyFetch for TpmFetch
impl Copy for TpmFetch
Auto Trait Implementations§
impl Freeze for TpmFetch
impl RefUnwindSafe for TpmFetch
impl Send for TpmFetch
impl Sync for TpmFetch
impl Unpin for TpmFetch
impl UnsafeUnpin for TpmFetch
impl UnwindSafe for TpmFetch
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