Enum tss_esapi::Tcti[][src]

pub enum Tcti {
    Device(DeviceConfig),
    Mssim(NetworkTPMConfig),
    Swtpm(NetworkTPMConfig),
    Tabrmd(TabrmdConfig),
}

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

impl Tcti[src]

pub fn from_environment_variable() -> Result<Self, Error>[src]

Gets a TCTI from the following environment variables, in order:

  • TPM2TOOLS_TCTI
  • TCTI
  • TEST_TCTI

Examples

// Create context
let mut context = unsafe {
    Context::new(
        Tcti::from_environment_variable().expect("Failed to get TCTI"),
    ).expect("Failed to create Context")
};

Trait Implementations

impl Clone for Tcti[src]

impl Debug for Tcti[src]

impl FromStr for Tcti[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<Tcti> for Tcti[src]

impl StructuralPartialEq for Tcti[src]

Auto Trait Implementations

impl RefUnwindSafe for Tcti

impl Send for Tcti

impl Sync for Tcti

impl Unpin for Tcti

impl UnwindSafe for Tcti

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Free for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.