pub trait TrustProvider:
Send
+ Sync
+ Debug {
// Required method
fn verify_package<'life0, 'life1, 'async_trait>(
&'life0 self,
bytes: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<VerifiedPackage, HyperError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Verifier for .actr package signatures.
An implementation fully takes raw package bytes and returns the parsed,
trusted package — or errors. Callers must not use any field of the
returned VerifiedPackage before calling this.
Required Methods§
fn verify_package<'life0, 'life1, 'async_trait>(
&'life0 self,
bytes: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<VerifiedPackage, HyperError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".