Struct btlib_tests::TpmCredStoreHarness
source · pub struct TpmCredStoreHarness { /* private fields */ }
Expand description
A test harness which allows a [TpmCredStore] to be accessed.
Implementations§
source§impl TpmCredStoreHarness
impl TpmCredStoreHarness
sourcepub fn new(root_passwd: String) -> Result<Self>
pub fn new(root_passwd: String) -> Result<Self>
Creates a new test harness by starting a new instance of swtpm, generating root and node creds, and issuing a writecap to the node creds.
pub fn root_passwd(&self) -> &str
pub fn swtpm(&self) -> &SwtpmHarness
pub fn cred_store(&self) -> &TpmCredStore
pub fn root_creds(&self) -> Result<TpmCreds>
Auto Trait Implementations§
impl RefUnwindSafe for TpmCredStoreHarness
impl Send for TpmCredStoreHarness
impl Sync for TpmCredStoreHarness
impl Unpin for TpmCredStoreHarness
impl UnwindSafe for TpmCredStoreHarness
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