LocalDuplicable

Trait LocalDuplicable 

Source
pub trait LocalDuplicable: Sealed + Sized {
    // Required method
    fn duplicate<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Self>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Ability to duplicate asynchronously without Sync.

See Duplicable for more information.

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: Clone> LocalDuplicable for Cursor<T>

Source§

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

Implementors§

Source§

impl LocalDuplicable for DuplicableFile

Available on crate feature fs only.