Trait hgame::ext::AssetExt

source ·
pub trait AssetExt: DynClone + Debug + Send + Sync {
    // Required methods
    fn assignees<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        project: &'life1 Project,
        asset: &'life2 ProductionAsset
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Staff>, DatabaseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn statuses<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        project: &'life1 Project,
        asset: &'life2 ProductionAsset
    ) -> Pin<Box<dyn Future<Output = Result<Vec<AssetStatus>, DatabaseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn status_action_mut<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        project: &'life1 Project,
        asset: &'life2 ProductionAsset,
        action: StatusAction
    ) -> Pin<Box<dyn Future<Output = Result<(), ModificationError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;

    // Provided method
    fn clear_cache(&mut self) { ... }
}

Required Methods§

source

fn assignees<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, project: &'life1 Project, asset: &'life2 ProductionAsset ) -> Pin<Box<dyn Future<Output = Result<Vec<Staff>, DatabaseError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Gets assignees of the given asset.

source

fn statuses<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, project: &'life1 Project, asset: &'life2 ProductionAsset ) -> Pin<Box<dyn Future<Output = Result<Vec<AssetStatus>, DatabaseError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Gets statuses of the given asset.

source

fn status_action_mut<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, project: &'life1 Project, asset: &'life2 ProductionAsset, action: StatusAction ) -> Pin<Box<dyn Future<Output = Result<(), ModificationError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Updates statuses for the asset, given that the specified StatusAction has been taken place. Returns the modified ProductionAsset.

Provided Methods§

source

fn clear_cache(&mut self)

Trait Implementations§

source§

impl<'clone> Clone for Box<dyn AssetExt + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn AssetExt + Send + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn AssetExt + Send + Sync + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn AssetExt + Sync + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§