pub struct Q42VolumeManifest {
pub generation: u64,
pub segments: Vec<Q42VolumeSegment>,
pub lexicon_segments: Vec<Q42LexiconSegment>,
}Expand description
Front-embedded catalog which makes immutable Q42 segments one snapshot.
Fields§
§generation: u64§segments: Vec<Q42VolumeSegment>§lexicon_segments: Vec<Q42LexiconSegment>Implementations§
Source§impl Q42VolumeManifest
impl Q42VolumeManifest
pub fn encode(&self) -> Result<Vec<u8>>
pub fn decode(bytes: &[u8]) -> Result<Self>
pub fn validate(&self) -> Result<()>
Sourcepub fn segment_range_for_object(
&self,
object_hash: u64,
) -> Option<Q42SegmentMatchRange>
pub fn segment_range_for_object( &self, object_hash: u64, ) -> Option<Q42SegmentMatchRange>
Return every segment whose committed object interval can contain the given value. Equal boundaries remain complete across adjacent volumes.
Sourcepub fn segment_indices_for_object_into(
&self,
object_hash: u64,
cursor: usize,
out: &mut [usize],
) -> Result<Option<Q42SegmentMatchPage>>
pub fn segment_indices_for_object_into( &self, object_hash: u64, cursor: usize, out: &mut [usize], ) -> Result<Option<Q42SegmentMatchPage>>
Fill a bounded page of matching segment indices. This caps caller work even when a high-frequency object falls on many volume boundaries.
pub fn segment_from_file( path: &Path, locator: String, ) -> Result<Q42VolumeSegment>
pub fn lexicon_segment_from_file( path: &Path, locator: String, ) -> Result<Q42LexiconSegment>
Trait Implementations§
Source§impl Clone for Q42VolumeManifest
impl Clone for Q42VolumeManifest
Source§fn clone(&self) -> Q42VolumeManifest
fn clone(&self) -> Q42VolumeManifest
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 Q42VolumeManifest
impl Debug for Q42VolumeManifest
Source§impl PartialEq for Q42VolumeManifest
impl PartialEq for Q42VolumeManifest
Source§fn eq(&self, other: &Q42VolumeManifest) -> bool
fn eq(&self, other: &Q42VolumeManifest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Q42VolumeManifest
impl StructuralPartialEq for Q42VolumeManifest
Auto Trait Implementations§
impl Freeze for Q42VolumeManifest
impl RefUnwindSafe for Q42VolumeManifest
impl Send for Q42VolumeManifest
impl Sync for Q42VolumeManifest
impl Unpin for Q42VolumeManifest
impl UnsafeUnpin for Q42VolumeManifest
impl UnwindSafe for Q42VolumeManifest
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more