Struct tc_transact::fs::BlockMut[][src]

pub struct BlockMut<'a, F: File> { /* fields omitted */ }

An exclusive mutable lock on one block of a File.

Implementations

impl<'a, F: File> BlockMut<'a, F>[src]

pub fn new(
    file: &'a F,
    txn_id: &'a TxnId,
    block_id: &'a BlockId,
    lock: RwLockWriteGuard<F::Block>
) -> Self
[src]

Construct a new lock.

pub async fn downgrade(self) -> TCResult<Block<'a, F>>[src]

Downgrade this write lock to a read lock.

Trait Implementations

impl<'a, F: File> Deref for BlockMut<'a, F>[src]

type Target = F::Block

The resulting type after dereferencing.

impl<'a, F: File> DerefMut for BlockMut<'a, F>[src]

Auto Trait Implementations

impl<'a, F> RefUnwindSafe for BlockMut<'a, F> where
    F: RefUnwindSafe
[src]

impl<'a, F> Send for BlockMut<'a, F>[src]

impl<'a, F> Sync for BlockMut<'a, F>[src]

impl<'a, F> Unpin for BlockMut<'a, F>[src]

impl<'a, F> UnwindSafe for BlockMut<'a, F> where
    F: RefUnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<F, T> CastFrom<F> for T where
    T: From<F>, 

impl<T, F> CastInto<F> for T where
    F: CastFrom<T>, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<F> Match for F

impl<F, T> TryCastFrom<F> for T where
    T: CastFrom<F>, 

impl<F, T> TryCastInto<T> for F where
    T: TryCastFrom<F>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,