Trait BundleManager

Source
pub trait BundleManager: Send + Sync {
    // Required methods
    fn bundle_write<'life0, 'async_trait>(
        &'life0 self,
        args: BundleWriteRequest,
    ) -> Pin<Box<dyn Future<Output = Result<BundleWriteResponse, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn bundle_add<'life0, 'async_trait>(
        &'life0 self,
        args: BundleAddRequest,
    ) -> Pin<Box<dyn Future<Output = Result<BundleAddResponse, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn bundle_remove<'life0, 'async_trait>(
        &'life0 self,
        args: BundleRemoveRequest,
    ) -> Pin<Box<dyn Future<Output = Result<BundleRemoveResponse, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn bundle_list<'life0, 'async_trait>(
        &'life0 self,
        args: BundleListRequest,
    ) -> Pin<Box<dyn Future<Output = Result<BundleListResponse, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Bundle manager interface.

Required Methods§

Source

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

Request to host to write a chunk of the bundle to a temporary file.

The PermissionBundleAdd permission is required to call this method.

Source

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

Request to host to add a specific bundle to the host.

The PermissionBundleAdd permission is required to call this method.

Source

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

Request to host to remove a specific component. Only components added by this component can be removed.

The PermissionBundleRemove permission is required to call this method.

Source

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

Request to host to list all bundles.

The PermissionBundleAdd permission is required to call this method.

Implementors§