Struct teaclave_attestation::RemoteAttestation
source · [−]pub struct RemoteAttestation { /* private fields */ }
Implementations
sourceimpl RemoteAttestation
impl RemoteAttestation
sourcepub fn new(attestation_config: Arc<AttestationConfig>) -> Self
pub fn new(attestation_config: Arc<AttestationConfig>) -> Self
Construct a RemoteAttestation
with attestation configuration.
sourcepub fn generate_and_endorse(self) -> Result<Self>
pub fn generate_and_endorse(self) -> Result<Self>
Generate a endorsed attestation report.
sourcepub fn attested_tls_config(&self) -> Option<Arc<RwLock<AttestedTlsConfig>>>
pub fn attested_tls_config(&self) -> Option<Arc<RwLock<AttestedTlsConfig>>>
Construct a attested TLS config for TLS connection (RPC in Teaclave).
Auto Trait Implementations
impl RefUnwindSafe for RemoteAttestation
impl Send for RemoteAttestation
impl Sync for RemoteAttestation
impl Unpin for RemoteAttestation
impl UnwindSafe for RemoteAttestation
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn 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