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>; #[must_use] fn read<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Self::ReadLock> + Send + 'async_trait>>
where
Self: 'async_trait; #[must_use] 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
Loading content...Required methods
#[must_use]fn read<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Self::ReadLock> + Send + 'async_trait>> where
Self: 'async_trait,
[src]
#[must_use]
fn read<'async_trait>(self
) -> Pin<Box<dyn Future<Output = Self::ReadLock> + Send + 'async_trait>> where
Self: 'async_trait,
Expand description
Get a read lock on this block.
#[must_use]fn write<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Self::WriteLock> + Send + 'async_trait>> where
Self: 'async_trait,
[src]
#[must_use]
fn write<'async_trait>(self
) -> Pin<Box<dyn Future<Output = Self::WriteLock> + Send + 'async_trait>> where
Self: 'async_trait,
Expand description
Get a write lock on this block.