Trait tc_transact::fs::File [−][src]
A transactional file.
Associated Types
Loading content...Required methods
#[must_use]fn contains_block<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
txn_id: &'life1 TxnId,
name: &'life2 BlockId
) -> Pin<Box<dyn Future<Output = TCResult<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: &'life1 TxnId,
name: &'life2 BlockId
) -> Pin<Box<dyn Future<Output = TCResult<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
#[must_use]fn create_block<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
name: BlockId,
initial_value: B
) -> Pin<Box<dyn Future<Output = TCResult<<Self::Block as Block<B>>::ReadLock>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: TxnId,
name: BlockId,
initial_value: B
) -> Pin<Box<dyn Future<Output = TCResult<<Self::Block as Block<B>>::ReadLock>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Create a new Self::Block
.
#[must_use]fn delete_block<'life0, 'life1, 'async_trait>(
&'life0 self,
txn_id: &'life1 TxnId,
name: BlockId
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: &'life1 TxnId,
name: BlockId
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Delete the block with the given ID.
#[must_use]fn get_block<'life0, 'life1, 'async_trait>(
&'life0 self,
txn_id: &'life1 TxnId,
name: BlockId
) -> Pin<Box<dyn Future<Output = TCResult<<Self::Block as Block<B>>::ReadLock>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: &'life1 TxnId,
name: BlockId
) -> Pin<Box<dyn Future<Output = TCResult<<Self::Block as Block<B>>::ReadLock>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Obtain a read lock on block name
as of TxnId
.
#[must_use]fn get_block_mut<'life0, 'life1, 'async_trait>(
&'life0 self,
txn_id: &'life1 TxnId,
name: BlockId
) -> Pin<Box<dyn Future<Output = TCResult<<Self::Block as Block<B>>::WriteLock>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
txn_id: &'life1 TxnId,
name: BlockId
) -> Pin<Box<dyn Future<Output = TCResult<<Self::Block as Block<B>>::WriteLock>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Obtain a write lock on block name
as of TxnId
.