Struct tc_transact::fs::BlockOwned [−][src]
An owned read lock on one block of a File
.
Implementations
impl<F: File + 'static> BlockOwned<F>
[src]
pub fn new(
file: F,
txn_id: TxnId,
block_id: BlockId,
lock: RwLockReadGuard<F::Block>
) -> BlockOwned<F>
[src]
file: F,
txn_id: TxnId,
block_id: BlockId,
lock: RwLockReadGuard<F::Block>
) -> BlockOwned<F>
Construct a new lock.
pub async fn upgrade(self) -> TCResult<BlockOwnedMut<F>>
[src]
Upgrade this read lock to a write lock.
Trait Implementations
impl<F: File> Deref for BlockOwned<F>
[src]
impl<'en, F: File> IntoStream<'en> for BlockOwned<F> where
F::Block: IntoStream<'en>,
[src]
F::Block: IntoStream<'en>,
Auto Trait Implementations
impl<F> RefUnwindSafe for BlockOwned<F> where
F: RefUnwindSafe,
[src]
F: RefUnwindSafe,
impl<F> Send for BlockOwned<F>
[src]
impl<F> Sync for BlockOwned<F>
[src]
impl<F> Unpin for BlockOwned<F> where
F: Unpin,
[src]
F: Unpin,
impl<F> UnwindSafe for BlockOwned<F> where
F: UnwindSafe,
[src]
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<F, T> CastFrom<F> for T where
T: From<F>,
T: From<F>,
pub fn cast_from(f: F) -> T
impl<T, F> CastInto<F> for T where
F: CastFrom<T>,
F: CastFrom<T>,
pub fn cast_into(self) -> F
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> Match for F
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
T: CastFrom<F>,
pub fn can_cast_from(&F) -> bool
pub fn opt_cast_from(f: F) -> Option<T>
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
OnErr: FnOnce(&T) -> Err,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
T: TryCastFrom<F>,
pub fn can_cast_into(&self) -> bool
pub fn opt_cast_into(self) -> Option<T>
pub fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
OnErr: FnOnce(&Self) -> Err,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,