Enum tss_esapi::tcti_ldr::TctiNameConf
source · pub enum TctiNameConf {
Device(DeviceConfig),
Mssim(NetworkTPMConfig),
Swtpm(NetworkTPMConfig),
Tabrmd(TabrmdConfig),
}
Expand description
Placeholder TCTI types that can be used when initialising a Context
to determine which
interface will be used to communicate with the TPM.
Variants§
Device(DeviceConfig)
Connect to a TPM available as a device node on the system
For more information about configuration, see this page
Mssim(NetworkTPMConfig)
Connect to a TPM (simulator) available as a network device via the MSSIM protocol
For more information about configuration, see this page
Swtpm(NetworkTPMConfig)
Connect to a TPM (simulator) available as a network device via the SWTPM protocol
For more information about configuration, see this page
Tabrmd(TabrmdConfig)
Connect to a TPM through an Access Broker/Resource Manager daemon
For more information about configuration, see this page
Implementations§
source§impl TctiNameConf
impl TctiNameConf
sourcepub fn from_environment_variable() -> Result<Self>
pub fn from_environment_variable() -> Result<Self>
Gets a TCTI from the following environment variables, in order:
- TPM2TOOLS_TCTI
- TCTI
- TEST_TCTI
§Examples
// Create context
let tcti_name_conf = TctiNameConf::from_environment_variable().expect("Failed to get TCTI");
Trait Implementations§
source§impl Clone for TctiNameConf
impl Clone for TctiNameConf
source§fn clone(&self) -> TctiNameConf
fn clone(&self) -> TctiNameConf
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TctiNameConf
impl Debug for TctiNameConf
source§impl FromStr for TctiNameConf
impl FromStr for TctiNameConf
source§impl PartialEq for TctiNameConf
impl PartialEq for TctiNameConf
source§fn eq(&self, other: &TctiNameConf) -> bool
fn eq(&self, other: &TctiNameConf) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<TctiNameConf> for CString
impl TryFrom<TctiNameConf> for CString
impl Eq for TctiNameConf
impl StructuralPartialEq for TctiNameConf
Auto Trait Implementations§
impl Freeze for TctiNameConf
impl RefUnwindSafe for TctiNameConf
impl Send for TctiNameConf
impl Sync for TctiNameConf
impl Unpin for TctiNameConf
impl UnwindSafe for TctiNameConf
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