Skip to main content

EinittokenProvider

Trait EinittokenProvider 

Source
pub trait EinittokenProvider: Debug {
    // Required methods
    fn token(
        &mut self,
        sigstruct: &Sigstruct,
        attributes: Attributes,
        retry: bool,
    ) -> Result<Einittoken, Error>;
    fn can_retry(&self) -> bool;
}

Required Methods§

Source

fn token( &mut self, sigstruct: &Sigstruct, attributes: Attributes, retry: bool, ) -> Result<Einittoken, Error>

Obtain an EINITTOKEN for the enclave specified by this SIGSTRUCT and ATTRIBUTES.

The provider may maintain a cache and may return results from the cache if retry is false. A caching provider should recompute the token if retry is true.

Source

fn can_retry(&self) -> bool

Will this provider exhibit different behavior if retry is true?

Trait Implementations§

Source§

impl<P: EinittokenProvider + 'static> From<P> for Box<dyn EinittokenProvider>

Source§

fn from(p: P) -> Self

Converts to this type from the input type.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§