pub struct ReadTransaction<F> {
pub id: u64,
pub max_frame_no: u64,
pub max_offset: u64,
pub db_size: u32,
pub current: Arc<CurrentSegment<F>>,
pub created_at: Instant,
pub conn_id: u64,
pub pages_read: usize,
pub namespace: NamespaceName,
pub checkpoint_notifier: Sender<CheckpointMessage>,
}Fields§
§id: u64§max_frame_no: u64Max frame number that this transaction can read
max_offset: u64§db_size: u32§current: Arc<CurrentSegment<F>>The segment to which we have a read lock
created_at: Instant§conn_id: u64§pages_read: usizenumber of pages read by this transaction. This is used to determine whether a write lock will be re-acquired.
namespace: NamespaceName§checkpoint_notifier: Sender<CheckpointMessage>Trait Implementations§
Source§impl<F> Clone for ReadTransaction<F>
impl<F> Clone for ReadTransaction<F>
Source§impl<F> Drop for ReadTransaction<F>
impl<F> Drop for ReadTransaction<F>
Source§impl<T> From<ReadTransaction<T>> for Transaction<T>
impl<T> From<ReadTransaction<T>> for Transaction<T>
Source§fn from(value: ReadTransaction<T>) -> Self
fn from(value: ReadTransaction<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<F> !Freeze for ReadTransaction<F>
impl<F> !RefUnwindSafe for ReadTransaction<F>
impl<F> Send for ReadTransaction<F>
impl<F> Sync for ReadTransaction<F>
impl<F> Unpin for ReadTransaction<F>
impl<F> !UnwindSafe for ReadTransaction<F>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.