Struct nebari::tree::ActiveState
source · [−]pub struct ActiveState<Root: Root> {
pub file_id: Option<u64>,
pub current_position: u64,
pub root: Root,
pub max_order: Option<usize>,
}
Expand description
An active state for a tree file.
Fields
file_id: Option<u64>
The current file id associated with this tree file. Database compaction will cause the file_id to be changed once the operation succeeds.
current_position: u64
The current location within the file for data to be written.
root: Root
The root of the B-Tree.
max_order: Option<usize>
The maximum “order” of the B-Tree. This controls the maximum number of children any node in the tree may contain. Nebari will automatically scale up to this number as the database grows.
Implementations
sourceimpl<Root> ActiveState<Root> where
Root: Root,
impl<Root> ActiveState<Root> where
Root: Root,
sourcepub fn initialized(&self) -> bool
pub fn initialized(&self) -> bool
Returns true if the state has been initialized.
Trait Implementations
sourceimpl<Root: Clone + Root> Clone for ActiveState<Root>
impl<Root: Clone + Root> Clone for ActiveState<Root>
sourcefn clone(&self) -> ActiveState<Root>
fn clone(&self) -> ActiveState<Root>
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<Root: Debug + Root> Debug for ActiveState<Root>
impl<Root: Debug + Root> Debug for ActiveState<Root>
sourceimpl<Root: Default + Root> Default for ActiveState<Root>
impl<Root: Default + Root> Default for ActiveState<Root>
sourcefn default() -> ActiveState<Root>
fn default() -> ActiveState<Root>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<Root> RefUnwindSafe for ActiveState<Root> where
Root: RefUnwindSafe,
impl<Root> Send for ActiveState<Root>
impl<Root> Sync for ActiveState<Root>
impl<Root> Unpin for ActiveState<Root> where
Root: Unpin,
impl<Root> UnwindSafe for ActiveState<Root> where
Root: 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