#[non_exhaustive]pub enum GarbageCollectionMode {
Unspecified,
Full,
Archive,
UnknownValue(UnknownValue),
}Expand description
Blockchain garbage collection modes. Only applicable when NodeType is
FULL or ARCHIVE.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
The garbage collection has not been specified.
Full
Configures Geth’s garbage collection so that older data not needed for a full node is deleted. This is the default mode when creating a full node.
Archive
Configures Geth’s garbage collection so that old data is never deleted. This is the default mode when creating an archive node. This value can also be chosen when creating a full node in order to create a partial/recent archive node. See Sync modes for more details.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using GarbageCollectionMode::value or GarbageCollectionMode::name.
Implementations§
Trait Implementations§
Source§impl Clone for GarbageCollectionMode
impl Clone for GarbageCollectionMode
Source§fn clone(&self) -> GarbageCollectionMode
fn clone(&self) -> GarbageCollectionMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GarbageCollectionMode
impl Debug for GarbageCollectionMode
Source§impl Default for GarbageCollectionMode
impl Default for GarbageCollectionMode
Source§impl<'de> Deserialize<'de> for GarbageCollectionMode
impl<'de> Deserialize<'de> for GarbageCollectionMode
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Display for GarbageCollectionMode
impl Display for GarbageCollectionMode
Source§impl From<&str> for GarbageCollectionMode
impl From<&str> for GarbageCollectionMode
Source§impl From<i32> for GarbageCollectionMode
impl From<i32> for GarbageCollectionMode
Source§impl PartialEq for GarbageCollectionMode
impl PartialEq for GarbageCollectionMode
Source§impl Serialize for GarbageCollectionMode
impl Serialize for GarbageCollectionMode
impl StructuralPartialEq for GarbageCollectionMode
Auto Trait Implementations§
impl Freeze for GarbageCollectionMode
impl RefUnwindSafe for GarbageCollectionMode
impl Send for GarbageCollectionMode
impl Sync for GarbageCollectionMode
impl Unpin for GarbageCollectionMode
impl UnsafeUnpin for GarbageCollectionMode
impl UnwindSafe for GarbageCollectionMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
T in a tonic::Request