Struct nebari::tree::BySequenceIndex
source · [−]pub struct BySequenceIndex<Embedded> {
pub key: ArcBytes<'static>,
pub last_sequence: Option<SequenceId>,
pub value_length: u32,
pub position: u64,
pub embedded: Option<Embedded>,
}
Expand description
The index stored within VersionedTreeRoot::by_sequence_root
.
Fields
key: ArcBytes<'static>
The key associated with this sequence id.
last_sequence: Option<SequenceId>
The previous sequence of this key.
value_length: u32
The size of the value stored on disk.
position: u64
The position of the value on disk.
embedded: Option<Embedded>
The embeded index at the time of the sequence being written. This value is always present on data written from v0.6.0 onwards. If the tree being used was created after v0.6.0 or has had compaction run on v0.6.0, it is safe to unwrap this value.
Trait Implementations
sourceimpl<Embedded: Clone> Clone for BySequenceIndex<Embedded>
impl<Embedded: Clone> Clone for BySequenceIndex<Embedded>
sourcefn clone(&self) -> BySequenceIndex<Embedded>
fn clone(&self) -> BySequenceIndex<Embedded>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<Embedded: Debug> Debug for BySequenceIndex<Embedded>
impl<Embedded: Debug> Debug for BySequenceIndex<Embedded>
sourceimpl<Embedded> ValueIndex for BySequenceIndex<Embedded>
impl<Embedded> ValueIndex for BySequenceIndex<Embedded>
Auto Trait Implementations
impl<Embedded> RefUnwindSafe for BySequenceIndex<Embedded> where
Embedded: RefUnwindSafe,
impl<Embedded> Send for BySequenceIndex<Embedded> where
Embedded: Send,
impl<Embedded> Sync for BySequenceIndex<Embedded> where
Embedded: Sync,
impl<Embedded> Unpin for BySequenceIndex<Embedded> where
Embedded: Unpin,
impl<Embedded> UnwindSafe for BySequenceIndex<Embedded> where
Embedded: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more