pub struct Context { /* private fields */ }Implementations§
Source§impl Context
impl Context
pub fn device(dev: Option<&str>) -> Result<Context>
pub fn socket(host: Option<&str>, port: Option<u16>) -> Result<Context>
Sourcepub fn password<T: ToString>(&mut self, auth_type: AuthType, passwd: T)
pub fn password<T: ToString>(&mut self, auth_type: AuthType, passwd: T)
set the authentication password we will use
pub fn startup(&self, action: Startup) -> Result<()>
Sourcepub fn take_ownership(
&self,
auth_type: HierarchyAuth,
passwd: &str,
) -> Result<()>
pub fn take_ownership( &self, auth_type: HierarchyAuth, passwd: &str, ) -> Result<()>
take ownership of the TPM setting the Owner, Endorsement or Lockout passwords to passwd
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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