pub trait PuffinManager {
type Reader: PuffinReader;
type Writer: PuffinWriter;
type FileHandle: ToString + Clone + Send + Sync;
// Required methods
fn reader<'life0, 'life1, 'async_trait>(
&'life0 self,
handle: &'life1 Self::FileHandle,
) -> Pin<Box<dyn Future<Output = Result<Self::Reader>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn writer<'life0, 'life1, 'async_trait>(
&'life0 self,
handle: &'life1 Self::FileHandle,
) -> Pin<Box<dyn Future<Output = Result<Self::Writer>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
The PuffinManager
trait provides a unified interface for creating PuffinReader
and PuffinWriter
.