#[non_exhaustive]pub enum TransactionalLogStorageState {
Unspecified,
Disk,
SwitchingToCloudStorage,
SwitchedToCloudStorage,
CloudStorage,
UnknownValue(UnknownValue),
}
Expand description
This value contains the storage location of the transactional logs used to perform point-in-time recovery (PITR) for the database.
§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
Unspecified.
Disk
The transaction logs used for PITR for the instance are stored on a data disk.
SwitchingToCloudStorage
The transaction logs used for PITR for the instance are switching from being stored on a data disk to being stored in Cloud Storage. Only applicable to MySQL.
SwitchedToCloudStorage
The transaction logs used for PITR for the instance are now stored in Cloud Storage. Previously, they were stored on a data disk. Only applicable to MySQL.
CloudStorage
The transaction logs used for PITR for the instance are stored in Cloud Storage. Only applicable to MySQL and PostgreSQL.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using TransactionalLogStorageState::value or TransactionalLogStorageState::name.
Implementations§
Trait Implementations§
Source§impl Clone for TransactionalLogStorageState
impl Clone for TransactionalLogStorageState
Source§fn clone(&self) -> TransactionalLogStorageState
fn clone(&self) -> TransactionalLogStorageState
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TransactionalLogStorageState
impl Debug for TransactionalLogStorageState
Source§impl<'de> Deserialize<'de> for TransactionalLogStorageState
impl<'de> Deserialize<'de> for TransactionalLogStorageState
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 From<&str> for TransactionalLogStorageState
impl From<&str> for TransactionalLogStorageState
Source§impl From<i32> for TransactionalLogStorageState
impl From<i32> for TransactionalLogStorageState
Source§impl PartialEq for TransactionalLogStorageState
impl PartialEq for TransactionalLogStorageState
Source§fn eq(&self, other: &TransactionalLogStorageState) -> bool
fn eq(&self, other: &TransactionalLogStorageState) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for TransactionalLogStorageState
Auto Trait Implementations§
impl Freeze for TransactionalLogStorageState
impl RefUnwindSafe for TransactionalLogStorageState
impl Send for TransactionalLogStorageState
impl Sync for TransactionalLogStorageState
impl Unpin for TransactionalLogStorageState
impl UnwindSafe for TransactionalLogStorageState
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
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.