TryBundle

Trait TryBundle 

Source
pub trait TryBundle:
    TryBundleSendSync
    + Serialize
    + DeserializeOwned {
    // Provided methods
    fn extend_bundle<'life0, 'life1, 'life2, 'async_trait, S>(
        &'life0 self,
        bundle: &'life1 mut Bundle,
        _store: &'life2 S,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where S: 'async_trait + BlockStore,
             Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn extend_bundle_with_cid<'life0, 'life1, 'life2, 'async_trait, S>(
        cid: &'life0 Cid,
        bundle: &'life1 mut Bundle,
        store: &'life2 S,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where S: 'async_trait + BlockStore,
             Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn bundle<'life0, 'life1, 'async_trait, S>(
        &'life0 self,
        store: &'life1 S,
    ) -> Pin<Box<dyn Future<Output = Result<Bundle>> + Send + 'async_trait>>
       where S: 'async_trait + BlockStore,
             Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn bundle_with_cid<'life0, 'life1, 'async_trait, S>(
        cid: &'life0 Cid,
        store: &'life1 S,
    ) -> Pin<Box<dyn Future<Output = Result<Bundle>> + Send + 'async_trait>>
       where S: 'async_trait + BlockStore,
             Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Provided Methods§

Source

fn extend_bundle<'life0, 'life1, 'life2, 'async_trait, S>( &'life0 self, bundle: &'life1 mut Bundle, _store: &'life2 S, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where S: 'async_trait + BlockStore, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn extend_bundle_with_cid<'life0, 'life1, 'life2, 'async_trait, S>( cid: &'life0 Cid, bundle: &'life1 mut Bundle, store: &'life2 S, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where S: 'async_trait + BlockStore, Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn bundle<'life0, 'life1, 'async_trait, S>( &'life0 self, store: &'life1 S, ) -> Pin<Box<dyn Future<Output = Result<Bundle>> + Send + 'async_trait>>
where S: 'async_trait + BlockStore, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn bundle_with_cid<'life0, 'life1, 'async_trait, S>( cid: &'life0 Cid, store: &'life1 S, ) -> Pin<Box<dyn Future<Output = Result<Bundle>> + Send + 'async_trait>>
where S: 'async_trait + BlockStore, Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: '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.

Implementors§