pub struct ServerlessExtentRef {
pub collection: String,
pub range_start: Vec<u8>,
pub range_end: Vec<u8>,
pub relative_path: PathBuf,
pub offset: u64,
pub bytes: u64,
pub checksum: u32,
pub content_hash: ServerlessContentHash,
pub hot: bool,
}Fields§
§collection: String§range_start: Vec<u8>§range_end: Vec<u8>§relative_path: PathBuf§offset: u64§bytes: u64§checksum: u32§content_hash: ServerlessContentHash§hot: boolImplementations§
Source§impl ServerlessExtentRef
impl ServerlessExtentRef
pub fn new( collection: impl Into<String>, range_start: impl Into<Vec<u8>>, range_end: impl Into<Vec<u8>>, relative_path: impl Into<PathBuf>, offset: u64, payload: &[u8], hot: bool, ) -> RdbFileResult<Self>
pub fn contains_key(&self, collection: &str, key: &[u8]) -> bool
pub fn overlaps_range( &self, collection: &str, range_start: &[u8], range_end: &[u8], ) -> bool
Trait Implementations§
Source§impl Clone for ServerlessExtentRef
impl Clone for ServerlessExtentRef
Source§fn clone(&self) -> ServerlessExtentRef
fn clone(&self) -> ServerlessExtentRef
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 ServerlessExtentRef
impl Debug for ServerlessExtentRef
impl Eq for ServerlessExtentRef
Source§impl From<&ServerlessExtentRef> for ServerlessSecondaryIndexEntry
impl From<&ServerlessExtentRef> for ServerlessSecondaryIndexEntry
Source§fn from(extent: &ServerlessExtentRef) -> Self
fn from(extent: &ServerlessExtentRef) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ServerlessExtentRef
impl PartialEq for ServerlessExtentRef
Source§fn eq(&self, other: &ServerlessExtentRef) -> bool
fn eq(&self, other: &ServerlessExtentRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServerlessExtentRef
Auto Trait Implementations§
impl Freeze for ServerlessExtentRef
impl RefUnwindSafe for ServerlessExtentRef
impl Send for ServerlessExtentRef
impl Sync for ServerlessExtentRef
impl Unpin for ServerlessExtentRef
impl UnsafeUnpin for ServerlessExtentRef
impl UnwindSafe for ServerlessExtentRef
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