pub enum ManifestNamingScheme {
V1,
V2,
}
Expand description
How manifest files should be named.
Variants§
V1
_versions/{version}.manifest
V2
_manifests/{u64::MAX - version}.manifest
Zero-padded and reversed for O(1) lookup of latest version on object stores.
Implementations§
Source§impl ManifestNamingScheme
impl ManifestNamingScheme
pub fn manifest_path(&self, base: &Path, version: u64) -> Path
pub fn parse_version(&self, filename: &str) -> Option<u64>
pub fn detect_scheme(filename: &str) -> Option<Self>
pub fn detect_scheme_staging(filename: &str) -> Self
Trait Implementations§
Source§impl Clone for ManifestNamingScheme
impl Clone for ManifestNamingScheme
Source§fn clone(&self) -> ManifestNamingScheme
fn clone(&self) -> ManifestNamingScheme
Returns a copy of the value. Read more
1.0.0 · 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 ManifestNamingScheme
impl Debug for ManifestNamingScheme
Source§impl PartialEq for ManifestNamingScheme
impl PartialEq for ManifestNamingScheme
impl Copy for ManifestNamingScheme
impl Eq for ManifestNamingScheme
impl StructuralPartialEq for ManifestNamingScheme
Auto Trait Implementations§
impl Freeze for ManifestNamingScheme
impl RefUnwindSafe for ManifestNamingScheme
impl Send for ManifestNamingScheme
impl Sync for ManifestNamingScheme
impl Unpin for ManifestNamingScheme
impl UnwindSafe for ManifestNamingScheme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreCreates a shared type from an unshared type.