Skip to main content

FileReader

Trait FileReader 

Source
pub trait FileReader: Send + Sync {
    // Required methods
    fn next<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        effect_id: &'life1 EffectId,
        work: Option<Arc<WorkBudget>>,
        limits: &'life2 TenantLimits,
    ) -> Pin<Box<dyn Future<Output = Result<ReadOutput, FilesystemError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn close<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        effect_id: &'life1 EffectId,
        work: Option<Arc<WorkBudget>>,
    ) -> Pin<Box<dyn Future<Output = Result<(), FilesystemError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided method
    fn descriptor(&self) -> Option<ResourceDescriptor> { ... }
}

Required Methods§

Source

fn next<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, effect_id: &'life1 EffectId, work: Option<Arc<WorkBudget>>, limits: &'life2 TenantLimits, ) -> Pin<Box<dyn Future<Output = Result<ReadOutput, FilesystemError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn close<'life0, 'life1, 'async_trait>( &'life0 mut self, effect_id: &'life1 EffectId, work: Option<Arc<WorkBudget>>, ) -> Pin<Box<dyn Future<Output = Result<(), FilesystemError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§