Trait ockam::AsyncTryClone

source ·
pub trait AsyncTryClone: Sized {
    // Required method
    fn async_try_clone<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Clone trait for async structs.

Required Methods§

source

fn async_try_clone<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Try cloning a object and return an Err in case of failure.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<F, S> AsyncTryClone for AllTrustPolicy<F, S>

source§

fn async_try_clone<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<AllTrustPolicy<F, S>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, AllTrustPolicy<F, S>: 'async_trait,

source§

impl<F, S> AsyncTryClone for AnyTrustPolicy<F, S>

source§

fn async_try_clone<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<AnyTrustPolicy<F, S>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, AnyTrustPolicy<F, S>: 'async_trait,

Implementors§