Struct teaclave_client_sdk::EnclaveInfo
[−]pub struct EnclaveInfo {
pub measurements: HashMap<String, EnclaveMeasurement, RandomState>,
}
Fields
measurements: HashMap<String, EnclaveMeasurement, RandomState>
Implementations
impl EnclaveInfo
impl EnclaveInfo
pub fn verify_and_new<T, U>(
enclave_info: &[u8],
public_keys: &[T],
signatures: &[U]
) -> Result<EnclaveInfo, Error>where
T: AsRef<[u8]>,
U: AsRef<[u8]>,
pub fn from_file<P>(path: P) -> Result<EnclaveInfo, Error>where
P: AsRef<Path>,
pub fn from_bytes(enclave_info: &[u8]) -> EnclaveInfo
pub fn verify<T, U>(
enclave_info: &[u8],
public_keys: &[T],
signatures: &[U]
) -> boolwhere
T: AsRef<[u8]>,
U: AsRef<[u8]>,
pub fn get_enclave_attr(&self, service_name: &str) -> Option<EnclaveAttr>
Auto Trait Implementations
impl RefUnwindSafe for EnclaveInfo
impl Send for EnclaveInfo
impl Sync for EnclaveInfo
impl Unpin for EnclaveInfo
impl UnwindSafe for EnclaveInfo
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