Enum google_api_proto::google::cloud::clouddms::v1::migration_job_verification_error::ErrorCode
source · #[repr(i32)]pub enum ErrorCode {
Show 28 variants
Unspecified = 0,
ConnectionFailure = 1,
AuthenticationFailure = 2,
InvalidConnectionProfileConfig = 3,
VersionIncompatibility = 4,
ConnectionProfileTypesIncompatibility = 5,
NoPglogicalInstalled = 7,
PglogicalNodeAlreadyExists = 8,
InvalidWalLevel = 9,
InvalidSharedPreloadLibrary = 10,
InsufficientMaxReplicationSlots = 11,
InsufficientMaxWalSenders = 12,
InsufficientMaxWorkerProcesses = 13,
UnsupportedExtensions = 14,
UnsupportedMigrationType = 15,
InvalidRdsLogicalReplication = 16,
UnsupportedGtidMode = 17,
UnsupportedTableDefinition = 18,
UnsupportedDefiner = 19,
CantRestartRunningMigration = 21,
SourceAlreadySetup = 23,
TablesWithLimitedSupport = 24,
UnsupportedDatabaseLocale = 25,
UnsupportedDatabaseFdwConfig = 26,
ErrorRdbms = 27,
SourceSizeExceedsThreshold = 28,
ExistingConflictingDatabases = 29,
ParallelImportInsufficientPrivilege = 30,
}
Expand description
A general error code describing the type of error that occurred.
Variants§
Unspecified = 0
An unknown error occurred
ConnectionFailure = 1
We failed to connect to one of the connection profile.
AuthenticationFailure = 2
We failed to authenticate to one of the connection profile.
InvalidConnectionProfileConfig = 3
One of the involved connection profiles has an invalid configuration.
VersionIncompatibility = 4
The versions of the source and the destination are incompatible.
ConnectionProfileTypesIncompatibility = 5
The types of the source and the destination are incompatible.
NoPglogicalInstalled = 7
No pglogical extension installed on databases, applicable for postgres.
PglogicalNodeAlreadyExists = 8
pglogical node already exists on databases, applicable for postgres.
InvalidWalLevel = 9
The value of parameter wal_level is not set to logical.
The value of parameter shared_preload_libraries does not include pglogical.
InsufficientMaxReplicationSlots = 11
The value of parameter max_replication_slots is not sufficient.
InsufficientMaxWalSenders = 12
The value of parameter max_wal_senders is not sufficient.
InsufficientMaxWorkerProcesses = 13
The value of parameter max_worker_processes is not sufficient.
UnsupportedExtensions = 14
Extensions installed are either not supported or having unsupported versions.
UnsupportedMigrationType = 15
Unsupported migration type.
InvalidRdsLogicalReplication = 16
Invalid RDS logical replication.
UnsupportedGtidMode = 17
The gtid_mode is not supported, applicable for MySQL.
UnsupportedTableDefinition = 18
The table definition is not support due to missing primary key or replica identity.
UnsupportedDefiner = 19
The definer is not supported.
CantRestartRunningMigration = 21
Migration is already running at the time of restart request.
SourceAlreadySetup = 23
The source already has a replication setup.
TablesWithLimitedSupport = 24
The source has tables with limited support. E.g. PostgreSQL tables without primary keys.
UnsupportedDatabaseLocale = 25
The source uses an unsupported locale.
UnsupportedDatabaseFdwConfig = 26
The source uses an unsupported Foreign Data Wrapper configuration.
ErrorRdbms = 27
There was an underlying RDBMS error.
SourceSizeExceedsThreshold = 28
The source DB size in Bytes exceeds a certain threshold. The migration might require an increase of quota, or might not be supported.
ExistingConflictingDatabases = 29
The destination DB contains existing databases that are conflicting with those in the source DB.
ParallelImportInsufficientPrivilege = 30
Insufficient privilege to enable the parallelism configuration.
Implementations§
source§impl ErrorCode
impl ErrorCode
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for ErrorCode
impl Ord for ErrorCode
source§impl PartialEq for ErrorCode
impl PartialEq for ErrorCode
source§impl PartialOrd for ErrorCode
impl PartialOrd for ErrorCode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ErrorCode
impl TryFrom<i32> for ErrorCode
§type Error = DecodeError
type Error = DecodeError
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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