Struct tc_transact::fs::BlockOwnedMut[][src]

pub struct BlockOwnedMut<F: File> { /* fields omitted */ }

An owned exclusive write lock on one block of a File.

Implementations

impl<F: File + 'static> BlockOwnedMut<F>[src]

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

Construct a new lock.

pub async fn downgrade(self) -> TCResult<BlockOwned<F>>[src]

Downgrade this write lock to a read lock.

Trait Implementations

impl<F: File> Deref for BlockOwnedMut<F>[src]

type Target = F::Block

The resulting type after dereferencing.

impl<F: File> DerefMut for BlockOwnedMut<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for BlockOwnedMut<F> where
    F: RefUnwindSafe
[src]

impl<F> Send for BlockOwnedMut<F>[src]

impl<F> Sync for BlockOwnedMut<F>[src]

impl<F> Unpin for BlockOwnedMut<F> where
    F: Unpin
[src]

impl<F> UnwindSafe for BlockOwnedMut<F> where
    F: UnwindSafe
[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>,