Struct mysql_common::binlog::events::GtidEvent[][src]

pub struct GtidEvent { /* fields omitted */ }
Expand description

GTID stands for Global Transaction IDentifier.

Implementations

Defines the flags value.

Returns the raw flags value.

Returns the flags value. Unknown bits will be truncated.

00000001 – Transaction may have changes logged with SBR.

In 5.6, 5.7.0-5.7.18, and 8.0.0-8.0.1, this flag is always set. Starting in 5.7.19 and 8.0.2, this flag is cleared if the transaction only contains row events. It is set if any part of the transaction is written in statement format.

Defines the sid value.

Returns the sid value.

sid is the UUID representing the SID.

Defines the gno value.

Returns the gno value.

gno is a group number, second component of GTID.

Returns the lc_typecode value.

lc_typecode is the type of logical timestamp used in the logical clock fields.

Sets the lc_typecode value to GtidEvent::LOGICAL_TIMESTAMP_TYPECODE.

This is already by default, but lc_typecode might be None if Self is obtained from an old MySql server via MyDeserialize::deserialize.

Sets the last_committed value.

Returns the last_committed value.

last_committed stores the transaction’s commit parent sequence_number.

Sets the sequence_number value.

Returns the sequence_number value.

sequence_number is the transaction’s logical timestamp assigned at prepare phase.

Sets the immediate_commit_timestamp value.

Returns the immediate_commit_timestamp value.

immediate_commit_timestamp is a timestamp of commit on the immediate master.

Sets the original_commit_timestamp value.

Returns the original_commit_timestamp value.

original_commit_timestamp is the timestamp of commit on the originating master.

Sets the tx_length value.

Returns the tx_length value.

tx_length is the packed transaction’s length in bytes, including the Gtid.

Sets the original_server_version value.

Returns the original_server_version value.

original_server_version is the version of the server where the transaction was originally executed.

Sets the immediate_server_version value.

Returns the immediate_server_version value.

immediate_server_version is the server version of the immediate server.

Trait Implementations

An event type, associated with this struct (if any).

Returns serialized length of this struct in bytes. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

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

Size hint of a serialized value (in bytes), if it’s constant.

Some structs defines deserialization in the context of another value. Read more

Deserializes self from the given buf. Read more

Serializes self into the buf.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into T using Into<T>. Read more

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Performs the conversion.

Performs the indexed conversion.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Should always be Self

Consumes the current HList and returns an HList with the requested shape. Read more

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

Attempts to convert self into T using TryInto<T>. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.