pub enum AttestationConfig {
NoAttestation,
WithAttestation(AttestationServiceConfig),
}
Expand description
Remote attestation configuration
Variants
NoAttestation
Trust enclave without attestation
WithAttestation(AttestationServiceConfig)
Perform attestation before trusting enclave
Implementations
sourceimpl AttestationConfig
impl AttestationConfig
sourcepub fn no_attestation() -> Arc<Self>
pub fn no_attestation() -> Arc<Self>
Creates AttestationConfig
for no attestation
sourcepub fn new(
algorithm: &str,
url: &str,
api_key: &str,
spid_str: &str
) -> Result<Arc<Self>>
pub fn new(
algorithm: &str,
url: &str,
api_key: &str,
spid_str: &str
) -> Result<Arc<Self>>
Creates AttestationConfig
for attestation using given values
sourcepub fn from_teaclave_config(config: &RuntimeConfig) -> Result<Arc<Self>>
pub fn from_teaclave_config(config: &RuntimeConfig) -> Result<Arc<Self>>
Crate attestation config from Teaclave runtime configuration.
Trait Implementations
sourceimpl Clone for AttestationConfig
impl Clone for AttestationConfig
sourcefn clone(&self) -> AttestationConfig
fn clone(&self) -> AttestationConfig
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for AttestationConfig
impl Send for AttestationConfig
impl Sync for AttestationConfig
impl Unpin for AttestationConfig
impl UnwindSafe for AttestationConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request