Trait ockam::AsyncTryClone
source · [−]pub trait AsyncTryClone {
fn async_try_clone<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self, 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,
Self: 'async_trait;
}
Expand description
Clone trait for async structs.
Required Methods
sourcefn async_try_clone<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self, 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,
Self: 'async_trait,
fn async_try_clone<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self, 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,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
Try cloning a object and return an Err
in case of failure.
Implementations on Foreign Types
sourceimpl<V, S> AsyncTryClone for TrustPublicKeyPolicy<V, S>where
V: IdentityVault + Send + Sync,
S: AuthenticatedStorage + Send + Sync + AsyncTryClone,
Identity<V>: AsyncTryClone,
impl<V, S> AsyncTryClone for TrustPublicKeyPolicy<V, S>where
V: IdentityVault + Send + Sync,
S: AuthenticatedStorage + Send + Sync + AsyncTryClone,
Identity<V>: AsyncTryClone,
fn async_try_clone<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<TrustPublicKeyPolicy<V, S>, 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,
TrustPublicKeyPolicy<V, S>: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
sourceimpl<F, S> AsyncTryClone for AllTrustPolicy<F, S>where
F: TrustPolicy + Send + Sync + AsyncTryClone,
S: TrustPolicy + Send + Sync + AsyncTryClone,
impl<F, S> AsyncTryClone for AllTrustPolicy<F, S>where
F: TrustPolicy + Send + Sync + AsyncTryClone,
S: TrustPolicy + Send + Sync + AsyncTryClone,
fn async_try_clone<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<AllTrustPolicy<F, S>, 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,
AllTrustPolicy<F, S>: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
sourceimpl<F, S> AsyncTryClone for AnyTrustPolicy<F, S>where
F: TrustPolicy + Send + Sync + AsyncTryClone,
S: TrustPolicy + Send + Sync + AsyncTryClone,
impl<F, S> AsyncTryClone for AnyTrustPolicy<F, S>where
F: TrustPolicy + Send + Sync + AsyncTryClone,
S: TrustPolicy + Send + Sync + AsyncTryClone,
fn async_try_clone<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<AnyTrustPolicy<F, S>, 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,
AnyTrustPolicy<F, S>: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
sourceimpl<V> AsyncTryClone for Identity<V>where
V: IdentityVault + Send + Sync + AsyncTryClone,
impl<V> AsyncTryClone for Identity<V>where
V: IdentityVault + Send + Sync + AsyncTryClone,
fn async_try_clone<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Identity<V>, 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,
Identity<V>: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;