pub struct Attestor { /* private fields */ }Expand description
Keeps a current TPM quote registered with PhyCloud.
Implementations§
Source§impl Attestor
impl Attestor
Sourcepub fn new(
signer: Arc<dyn Signer>,
endpoint: &str,
api_key: Option<String>,
source_id: impl Into<String>,
interval: Duration,
pcrs: impl Into<String>,
) -> Self
pub fn new( signer: Arc<dyn Signer>, endpoint: &str, api_key: Option<String>, source_id: impl Into<String>, interval: Duration, pcrs: impl Into<String>, ) -> Self
signer must be able to quote (a TPM signer); api_key is the
device’s key with events:write.
Trait Implementations§
Source§impl AttestationProvider for Attestor
impl AttestationProvider for Attestor
Auto Trait Implementations§
impl !Freeze for Attestor
impl !RefUnwindSafe for Attestor
impl !UnwindSafe for Attestor
impl Send for Attestor
impl Sync for Attestor
impl Unpin for Attestor
impl UnsafeUnpin for Attestor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more