pub struct VersionManager<T: Versionable> { /* private fields */ }Implementations§
Source§impl<T: Versionable> VersionManager<T>
impl<T: Versionable> VersionManager<T>
Sourcepub fn new(oracle: Arc<TimestampOracle>) -> Self
pub fn new(oracle: Arc<TimestampOracle>) -> Self
Sourcepub fn new_without_oracle() -> Self
pub fn new_without_oracle() -> Self
타임스탬프 오라클 없이 VersionManager를 생성합니다.
이 경우 타임스탬프는 외부에서 직접 관리해야 합니다.
Sourcepub fn collect_garbage(&self, min_active_ts: u64) -> DbxResult<usize>
pub fn collect_garbage(&self, min_active_ts: u64) -> DbxResult<usize>
Sourcepub fn version_count(&self, key: &[u8]) -> DbxResult<usize>
pub fn version_count(&self, key: &[u8]) -> DbxResult<usize>
특정 키의 모든 버전 개수를 반환합니다.
Sourcepub fn total_version_count(&self) -> DbxResult<usize>
pub fn total_version_count(&self) -> DbxResult<usize>
전체 버전 개수를 반환합니다.
Trait Implementations§
Source§impl<T: Clone + Versionable> Clone for VersionManager<T>
impl<T: Clone + Versionable> Clone for VersionManager<T>
Source§fn clone(&self) -> VersionManager<T>
fn clone(&self) -> VersionManager<T>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<T> Freeze for VersionManager<T>
impl<T> RefUnwindSafe for VersionManager<T>
impl<T> Send for VersionManager<T>
impl<T> Sync for VersionManager<T>
impl<T> Unpin for VersionManager<T>
impl<T> UnsafeUnpin for VersionManager<T>
impl<T> UnwindSafe for VersionManager<T>
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<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 more