pub enum TransactionJourney {
SentByTransactionClient,
RecievedByClientTransactionActor,
RecievedByClientWriter,
RecievedByServerReader,
RecievedByServerRouter,
RecievedByServerTransactionActor,
RecievedByServerWriter,
RecievedByClientReader,
RecievedByClientRouter,
RecievedByClientTransactionActorAgain,
RecievedByTransactionClient,
}
Expand description
Represents the journey of a transaction message.
This enum represents the journey of a transaction message. It is used to log the journey of a transaction message
§Variants
SentByTransactionClient
: The transaction message was sent by the transaction clientRecievedByClientTransactionActor
: The transaction message was recieved by the client transaction actorRecievedByClientWriter
: The transaction message was recieved by the client writerRecievedByServerReader
: The transaction message was recieved by the server readerRecievedByServerRouter
: The transaction message was recieved by the server routerRecievedByServerTransactionActor
: The transaction message was recieved by the server transaction actorRecievedByServerWriter
: The transaction message was recieved by the server writerRecievedByClientReader
: The transaction message was recieved by the client readerRecievedByClientRouter
: The transaction message was recieved by the client routerRecievedByClientTransactionActorAgain
: The transaction message was recieved by the client transaction actor againRecievedByTransactionClient
: The transaction message was recieved by the transaction client
Variants§
SentByTransactionClient
RecievedByClientTransactionActor
RecievedByClientWriter
RecievedByServerReader
RecievedByServerRouter
RecievedByServerTransactionActor
RecievedByServerWriter
RecievedByClientReader
RecievedByClientRouter
RecievedByClientTransactionActorAgain
RecievedByTransactionClient
Implementations§
source§impl TransactionJourney
impl TransactionJourney
sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Returns the string representation of the transaction journey.
§Returns
The string representation of the transaction journey
sourcepub fn to_begin_log(
&self,
connection_id: &String,
transaction_id: &Option<String>,
data: &TransactionData,
) -> String
pub fn to_begin_log( &self, connection_id: &String, transaction_id: &Option<String>, data: &TransactionData, ) -> String
Returns the log message for the transaction journey when the transaction message is a begin transaction message.
§Arguments
connection_id
: the id of the connection that the transaction message is associated withtransaction_id
: the id of the transaction that the transaction message is associated withdata
: the data of the transaction message such as the operation type and key value pairs
§Returns
The log message for the transaction journey when the transaction message is a begin transaction message
sourcepub fn to_send_log(
&self,
connection_id: &String,
transaction_id: &Option<String>,
data: &TransactionData,
) -> String
pub fn to_send_log( &self, connection_id: &String, transaction_id: &Option<String>, data: &TransactionData, ) -> String
Returns the log message for the transaction journey when the transaction message is a send operation message.
§Arguments
connection_id
: the id of the connection that the transaction message is associated withtransaction_id
: the id of the transaction that the transaction message is associated withdata
: the data of the transaction message such as the operation type and key value pairs
§Returns
The log message for the transaction journey when the transaction message is a send operation message
sourcepub fn to_ping_log(
&self,
connection_id: &String,
transaction_id: &Option<String>,
data: &TransactionData,
) -> String
pub fn to_ping_log( &self, connection_id: &String, transaction_id: &Option<String>, data: &TransactionData, ) -> String
Returns the log message for the transaction journey when the transaction message is a commit transaction message.
§Arguments
connection_id
: the id of the connection that the transaction message is associated withtransaction_id
: the id of the transaction that the transaction message is associated withdata
: the data of the transaction message such as the operation type and key value pairs
§Returns
The log message for the transaction journey when the transaction message is a commit transaction message
sourcepub fn to_error_log(
&self,
connection_id: &String,
transaction_id: &Option<String>,
data: &TransactionData,
) -> String
pub fn to_error_log( &self, connection_id: &String, transaction_id: &Option<String>, data: &TransactionData, ) -> String
Returns the log message for the transaction journey when the transaction message is an error message.
§Arguments
connection_id
: the id of the connection that the transaction message is associated withtransaction_id
: the id of the transaction that the transaction message is associated withdata
: the data of the transaction message such as the operation type and key value pairs
§Returns
The log message for the transaction journey when the transaction message is an error message
sourcepub fn to_commit_log(
&self,
connection_id: &String,
transaction_id: &Option<String>,
) -> String
pub fn to_commit_log( &self, connection_id: &String, transaction_id: &Option<String>, ) -> String
Returns the log message for the transaction journey when the transaction message is an commit message.
§Arguments
connection_id
: the id of the connection that the transaction message is associated withtransaction_id
: the id of the transaction that the transaction message is associated with
§Returns
The log message for the transaction journey when the transaction message is an commit message
sourcepub fn to_rollback_log(
&self,
connection_id: &String,
transaction_id: &Option<String>,
) -> String
pub fn to_rollback_log( &self, connection_id: &String, transaction_id: &Option<String>, ) -> String
Returns the log message for the transaction journey when the transaction message is a rollback message.
§Arguments
connection_id
: the id of the connection that the transaction message is associated withtransaction_id
: the id of the transaction that the transaction message is associated with
§Returns
The log message for the transaction journey when the transaction message is a rollback message