pub enum CompactionStyle {
Level,
Universal,
}
Expand description
The 2 primary compaction styles in RocksDB. See
RocksDBTuningParameters::compaction_style`
for more information.
Variants§
Trait Implementations§
Source§impl Arbitrary for CompactionStyle
impl Arbitrary for CompactionStyle
Source§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.Source§type Strategy = Union<BoxedStrategy<CompactionStyle>>
type Strategy = Union<BoxedStrategy<CompactionStyle>>
The type of
Strategy
used to generate values of type Self
.Source§fn arbitrary_with(
_top: <CompactionStyle as Arbitrary>::Parameters,
) -> <CompactionStyle as Arbitrary>::Strategy
fn arbitrary_with( _top: <CompactionStyle as Arbitrary>::Parameters, ) -> <CompactionStyle as Arbitrary>::Strategy
Source§impl Clone for CompactionStyle
impl Clone for CompactionStyle
Source§fn clone(&self) -> CompactionStyle
fn clone(&self) -> CompactionStyle
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 CompactionStyle
impl Debug for CompactionStyle
Source§impl<'de> Deserialize<'de> for CompactionStyle
impl<'de> Deserialize<'de> for CompactionStyle
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompactionStyle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompactionStyle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CompactionStyle
impl Display for CompactionStyle
Source§impl FromStr for CompactionStyle
impl FromStr for CompactionStyle
Source§impl IntoRocksDBType for CompactionStyle
impl IntoRocksDBType for CompactionStyle
type Type = DBCompactionStyle
fn into_rocksdb(self) -> Self::Type
Source§impl PartialEq for CompactionStyle
impl PartialEq for CompactionStyle
Source§impl Serialize for CompactionStyle
impl Serialize for CompactionStyle
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for CompactionStyle
impl Eq for CompactionStyle
impl StructuralPartialEq for CompactionStyle
Auto Trait Implementations§
impl Freeze for CompactionStyle
impl RefUnwindSafe for CompactionStyle
impl Send for CompactionStyle
impl Sync for CompactionStyle
impl Unpin for CompactionStyle
impl UnwindSafe for CompactionStyle
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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<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<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
Source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.Source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.