Struct dist_tx::tm::XaTransactionId [] [src]

pub struct XaTransactionId { /* fields omitted */ }

The ID of a distributed transaction, analogous to the X/Open XA standard.

Methods

impl XaTransactionId
[src]

[src]

Creates an instance of XaTransactionId from the three components format_id, global_tid, and branch_qualifier.

Note that the lengths of the binary parameters must not exceed 64.

XA uses a signed int for the format_id, but recommends using only -1, 0, and positive values, where -1 is used to represent the NULL value.

[src]

Creates an instance of XaTransactionId that represents NULL.

[src]

Returns the format_id.

[src]

Returns a reference to the global transaction id.

[src]

Returns a reference to the branch qualifier.

[src]

Provides a binary representation. If padding is true, and the combined length of the binary fields is below 128 bytes, the missing number of zero bytes are appended to make the byte pattern compatible with the XA structure in C.

[src]

Reads a Vec of instances from a binary representation. If padding is true, and the combined length of the binary fields is below 128 bytes, the missing number of bytes are skipped to make the byte pattern compatible with the XA structure in C.

Trait Implementations

impl Clone for XaTransactionId
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for XaTransactionId
[src]

[src]

Formats the value using the given formatter.