pub struct ServerlessExtentIndex {
pub generation: u64,
pub extents: Vec<ServerlessExtentRef>,
}Fields§
§generation: u64§extents: Vec<ServerlessExtentRef>Implementations§
Source§impl ServerlessExtentIndex
impl ServerlessExtentIndex
pub fn new(generation: u64) -> Self
pub fn push(&mut self, extent: ServerlessExtentRef)
pub fn extents_for_key( &self, collection: &str, key: &[u8], ) -> Vec<&ServerlessExtentRef>
pub fn extents_for_range( &self, collection: &str, range_start: &[u8], range_end: &[u8], ) -> RdbFileResult<Vec<&ServerlessExtentRef>>
pub fn hot_prefetch_paths(&self) -> Vec<PathBuf>
pub fn hydration_plan_for_key( &self, collection: &str, key: &[u8], ) -> ServerlessHydrationPlan
pub fn hydration_plan_for_range( &self, collection: &str, range_start: &[u8], range_end: &[u8], ) -> RdbFileResult<ServerlessHydrationPlan>
pub fn hot_hydration_plan(&self) -> ServerlessHydrationPlan
pub fn write_to_path(&self, path: impl AsRef<Path>) -> RdbFileResult<()>
pub fn read_from_path(path: impl AsRef<Path>) -> RdbFileResult<Self>
pub fn encode(&self) -> Vec<u8> ⓘ
pub fn decode(bytes: &[u8]) -> RdbFileResult<Self>
Trait Implementations§
Source§impl Clone for ServerlessExtentIndex
impl Clone for ServerlessExtentIndex
Source§fn clone(&self) -> ServerlessExtentIndex
fn clone(&self) -> ServerlessExtentIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerlessExtentIndex
impl Debug for ServerlessExtentIndex
impl Eq for ServerlessExtentIndex
Source§impl PartialEq for ServerlessExtentIndex
impl PartialEq for ServerlessExtentIndex
Source§fn eq(&self, other: &ServerlessExtentIndex) -> bool
fn eq(&self, other: &ServerlessExtentIndex) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServerlessExtentIndex
Auto Trait Implementations§
impl Freeze for ServerlessExtentIndex
impl RefUnwindSafe for ServerlessExtentIndex
impl Send for ServerlessExtentIndex
impl Sync for ServerlessExtentIndex
impl Unpin for ServerlessExtentIndex
impl UnsafeUnpin for ServerlessExtentIndex
impl UnwindSafe for ServerlessExtentIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more