Skip to main content

FilesystemSourceProvider

Trait FilesystemSourceProvider 

Source
pub trait FilesystemSourceProvider:
    Send
    + Sync
    + 'static {
    // Required methods
    fn state<'life0, 'async_trait>(
        &'life0 self,
        scope: HostedSourceScope,
    ) -> Pin<Box<dyn Future<Output = Result<HostedSourceResult, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn reconcile<'life0, 'async_trait>(
        &'life0 self,
        operation: HostedSourceOperation,
    ) -> Pin<Box<dyn Future<Output = Result<HostedSourceResult, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn rescan<'life0, 'async_trait>(
        &'life0 self,
        operation: HostedSourceOperation,
    ) -> Pin<Box<dyn Future<Output = Result<HostedSourceResult, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn seal<'life0, 'async_trait>(
        &'life0 self,
        operation: HostedSourceOperation,
    ) -> Pin<Box<dyn Future<Output = Result<HostedSourceResult, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Deployment extension for a remotely owned attached source.

Required Methods§

Source

fn state<'life0, 'async_trait>( &'life0 self, scope: HostedSourceScope, ) -> Pin<Box<dyn Future<Output = Result<HostedSourceResult, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the current source state without mutation.

Source

fn reconcile<'life0, 'async_trait>( &'life0 self, operation: HostedSourceOperation, ) -> Pin<Box<dyn Future<Output = Result<HostedSourceResult, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Captures one bounded contiguous source interval.

Source

fn rescan<'life0, 'async_trait>( &'life0 self, operation: HostedSourceOperation, ) -> Pin<Box<dyn Future<Output = Result<HostedSourceResult, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Rebuilds a complete authenticated source baseline.

Source

fn seal<'life0, 'async_trait>( &'life0 self, operation: HostedSourceOperation, ) -> Pin<Box<dyn Future<Output = Result<HostedSourceResult, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Produces a generation independent of the attached source.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§