Skip to main content

SourceOption

Enum SourceOption 

Source
pub enum SourceOption {
Show 37 variants SourceBind, SourceHost, SourceUser, SourcePassword, SourcePort, SourceConnectRetry, SourceRetryCount, SourceDelay, SourceHeartbeatPeriod, SourceLogFile, SourceLogPos, SourceAutoPosition, RelayLogFile, RelayLogPos, SourceSsl, SourceSslCa, SourceSslCapath, SourceSslCert, SourceSslCipher, SourceSslKey, SourceSslVerifyServerCert, SourceSslCrl, SourceSslCrlpath, SourceTlsVersion, SourceTlsCiphersuites, SourcePublicKeyPath, GetSourcePublicKey, NetworkNamespace, IgnoreServerIds, SourceCompressionAlgorithms, SourceZstdCompressionLevel, PrivilegeChecksUser, RequireRowFormat, RequireTablePrimaryKeyCheck, SourceConnectionAutoFailover, AssignGtidsToAnonymousTransactions, GtidOnly,
}
Expand description

The closed set of CHANGE REPLICATION SOURCE TO option names admitted by mysql:8.4.10.

A surface tag (no meta; the span rides the enclosing ChangeReplicationSourceOption). The set is the 8.4 grammar’s source_def/source_file_def alternatives, engine-narrowed: the deprecated MASTER_* names were removed (each ER_PARSE_ERROR), and the compression option is the plural SOURCE_COMPRESSION_ALGORITHMS — the singular SOURCE_COMPRESSION_ALGORITHM (the yacc token’s bare name) is ER_PARSE_ERROR on mysql:8.4.10, so only the plural keyword is admitted.

Variants§

§

SourceBind

SOURCE_BIND — the network interface to bind to.

§

SourceHost

SOURCE_HOST — the source server host name.

§

SourceUser

SOURCE_USER — the replication account user name.

§

SourcePassword

SOURCE_PASSWORD — the replication account password.

§

SourcePort

SOURCE_PORT — the source server TCP port.

§

SourceConnectRetry

SOURCE_CONNECT_RETRY — seconds between reconnection attempts.

§

SourceRetryCount

SOURCE_RETRY_COUNT — the reconnection-attempt cap.

§

SourceDelay

SOURCE_DELAY — the replication delay in seconds.

§

SourceHeartbeatPeriod

SOURCE_HEARTBEAT_PERIOD — the heartbeat interval (a fractional number of seconds).

§

SourceLogFile

SOURCE_LOG_FILE — the source binary-log file name to read from.

§

SourceLogPos

SOURCE_LOG_POS — the source binary-log position to read from.

§

SourceAutoPosition

SOURCE_AUTO_POSITION — enable GTID auto-positioning (0/1).

§

RelayLogFile

RELAY_LOG_FILE — the relay-log file name to resume from.

§

RelayLogPos

RELAY_LOG_POS — the relay-log position to resume from.

§

SourceSsl

SOURCE_SSL — enable an encrypted connection (0/1).

§

SourceSslCa

SOURCE_SSL_CA — the certificate-authority file.

§

SourceSslCapath

SOURCE_SSL_CAPATH — the certificate-authority directory.

§

SourceSslCert

SOURCE_SSL_CERT — the client public-key certificate file.

§

SourceSslCipher

SOURCE_SSL_CIPHER — the permitted cipher list.

§

SourceSslKey

SOURCE_SSL_KEY — the client private-key file.

§

SourceSslVerifyServerCert

SOURCE_SSL_VERIFY_SERVER_CERT — verify the source certificate (0/1).

§

SourceSslCrl

SOURCE_SSL_CRL — the certificate-revocation-list file.

§

SourceSslCrlpath

SOURCE_SSL_CRLPATH — the certificate-revocation-list directory.

§

SourceTlsVersion

SOURCE_TLS_VERSION — the permitted TLS-protocol list.

§

SourceTlsCiphersuites

SOURCE_TLS_CIPHERSUITES — the permitted TLSv1.3 ciphersuite list (string, or NULL).

§

SourcePublicKeyPath

SOURCE_PUBLIC_KEY_PATH — the RSA public-key file for password exchange.

§

GetSourcePublicKey

GET_SOURCE_PUBLIC_KEY — request the RSA public key from the source (0/1).

§

NetworkNamespace

NETWORK_NAMESPACE — the network namespace.

§

IgnoreServerIds

IGNORE_SERVER_IDS — the parenthesized server-id ignore list.

§

SourceCompressionAlgorithms

SOURCE_COMPRESSION_ALGORITHMS — the permitted connection-compression algorithms.

§

SourceZstdCompressionLevel

SOURCE_ZSTD_COMPRESSION_LEVEL — the zstd compression level.

§

PrivilegeChecksUser

PRIVILEGE_CHECKS_USER — the account whose privileges gate applied transactions (an account, or NULL).

§

RequireRowFormat

REQUIRE_ROW_FORMAT — require row-based events (0/1).

§

RequireTablePrimaryKeyCheck

REQUIRE_TABLE_PRIMARY_KEY_CHECK — the primary-key-check policy (ON/OFF/STREAM/GENERATE).

§

SourceConnectionAutoFailover

SOURCE_CONNECTION_AUTO_FAILOVER — enable asynchronous connection failover (0/1).

§

AssignGtidsToAnonymousTransactions

ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS — the anonymous-transaction GTID policy (OFF/LOCAL/'<uuid>').

§

GtidOnly

GTID_ONLY — replicate using only GTIDs, storing no file/position (0/1).

Implementations§

Source§

impl SourceOption

Source

pub fn keyword(self) -> &'static str

The exact keyword spelling this option renders as — the single source of truth shared by the renderer and the parser’s option table.

Trait Implementations§

Source§

impl Clone for SourceOption

Source§

fn clone(&self) -> SourceOption

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SourceOption

Source§

impl Debug for SourceOption

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SourceOption

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for SourceOption

Source§

impl Hash for SourceOption

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for SourceOption

Source§

fn eq(&self, other: &SourceOption) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for SourceOption

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SourceOption

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.