Trait tc_transact::fs::Block [−][src]
pub trait Block<B: BlockData, F: File<B>>: Send + Sync {
type ReadLock: BlockRead<B, F>;
type WriteLock: BlockWrite<B, F>;
fn read<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Self::ReadLock> + Send + 'async_trait>>
where
Self: 'async_trait;
fn write<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Self::WriteLock> + Send + 'async_trait>>
where
Self: 'async_trait;
}
Expand description
A transactional filesystem block.
Associated Types
Required methods
Get a read lock on this block.