Trait ockam::TrustPolicy
source · [−]pub trait TrustPolicy: 'static + AsyncTryClone + Send + Sync {
fn check<'life0, 'life1, 'async_trait>(
&'life0 mut self,
trust_info: &'life1 SecureChannelTrustInfo
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait, Global>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}
Required methods
fn check<'life0, 'life1, 'async_trait>(
&'life0 mut self,
trust_info: &'life1 SecureChannelTrustInfo
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait, Global>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;