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
sourceimpl 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
sourceimpl Clone for TctiNameConf
impl Clone for TctiNameConf
sourcefn clone(&self) -> TctiNameConf
fn clone(&self) -> TctiNameConf
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TctiNameConf
impl Debug for TctiNameConf
sourceimpl FromStr for TctiNameConf
impl FromStr for TctiNameConf
sourceimpl PartialEq<TctiNameConf> for TctiNameConf
impl PartialEq<TctiNameConf> for TctiNameConf
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &TctiNameConf) -> bool
fn ne(&self, other: &TctiNameConf) -> bool
This method tests for !=
.
sourceimpl TryFrom<TctiNameConf> for CString
impl TryFrom<TctiNameConf> for CString
impl StructuralPartialEq for TctiNameConf
Auto Trait Implementations
impl RefUnwindSafe for TctiNameConf
impl Send for TctiNameConf
impl Sync for TctiNameConf
impl Unpin for TctiNameConf
impl UnwindSafe for TctiNameConf
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more