[][src]Enum teaclave_attestation::AttestationConfig

pub enum AttestationConfig {
    NoAttestation,
    WithAttestation(AttestationServiceConfig),
}

Remote attestation configuration

Variants

NoAttestation

Trust enclave without attestation

WithAttestation(AttestationServiceConfig)

Perform attestation before trusting enclave

Methods

impl AttestationConfig[src]

pub fn no_attestation() -> Arc<Self>[src]

Creates AttestationConfig for no attestation

pub fn new(
    algorithm: &str,
    url: &str,
    api_key: &str,
    spid_str: &str
) -> Result<Arc<Self>>
[src]

Creates AttestationConfig for attestation using given values

pub fn from_teaclave_config(config: &RuntimeConfig) -> Result<Arc<Self>>[src]

Crate attestation config from Teaclave runtime configuration.

Trait Implementations

impl Clone for AttestationConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for AttestationConfig

impl Send for AttestationConfig

impl Sync for AttestationConfig

impl Unpin for AttestationConfig

impl UnwindSafe for AttestationConfig

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> From<T> for T[src]

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

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

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]