Struct teaclave_rpc::config::SgxTrustedTlsClientConfig
source · [−]pub struct SgxTrustedTlsClientConfig {
pub client_config: ClientConfig,
pub attested_tls_config: Option<Arc<RwLock<AttestedTlsConfig>>>,
pub validity: Duration,
}
Fields
client_config: ClientConfig
attested_tls_config: Option<Arc<RwLock<AttestedTlsConfig>>>
validity: Duration
Implementations
sourceimpl SgxTrustedTlsClientConfig
impl SgxTrustedTlsClientConfig
pub fn new() -> Self
pub fn attestation_report_verifier(
self,
accepted_enclave_attrs: Vec<EnclaveAttr>,
root_ca: &[u8],
verifier: fn(_: &AttestationReport) -> bool
) -> Self
pub fn client_cert(self, cert: &[u8], key_der: &[u8]) -> Result<Self>
pub fn from_attested_tls_config(
attested_tls_config: Arc<RwLock<AttestedTlsConfig>>
) -> Result<Self>
Trait Implementations
sourceimpl Default for SgxTrustedTlsClientConfig
impl Default for SgxTrustedTlsClientConfig
sourceimpl From<SgxTrustedTlsClientConfig> for ClientTlsConfig
impl From<SgxTrustedTlsClientConfig> for ClientTlsConfig
sourcefn from(config: SgxTrustedTlsClientConfig) -> Self
fn from(config: SgxTrustedTlsClientConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for SgxTrustedTlsClientConfig
impl Send for SgxTrustedTlsClientConfig
impl Sync for SgxTrustedTlsClientConfig
impl Unpin for SgxTrustedTlsClientConfig
impl !UnwindSafe for SgxTrustedTlsClientConfig
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