Trait StreamFactory

Source
pub trait StreamFactory: Send + Sync {
    // Required methods
    fn get_stream(
        &self,
        writable: bool,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn FileStream>>> + Send + Sync + '_>>;
    fn exists(&self) -> Pin<Box<dyn Future<Output = bool> + Send + Sync + '_>>;
    fn len(
        &self,
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + Sync + '_>>;
    fn delete(
        &self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + Sync + '_>>;
}

Required Methods§

Source

fn get_stream( &self, writable: bool, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn FileStream>>> + Send + Sync + '_>>

Source

fn exists(&self) -> Pin<Box<dyn Future<Output = bool> + Send + Sync + '_>>

Source

fn len(&self) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + Sync + '_>>

Source

fn delete(&self) -> Pin<Box<dyn Future<Output = Result<()>> + Send + Sync + '_>>

Implementors§