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§
Sourcefn token(
&mut self,
sigstruct: &Sigstruct,
attributes: Attributes,
retry: bool,
) -> Result<Einittoken, Error>
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.
Trait Implementations§
Source§impl<P: EinittokenProvider + 'static> From<P> for Box<dyn EinittokenProvider>
impl<P: EinittokenProvider + 'static> From<P> for Box<dyn EinittokenProvider>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".