pub struct MultiplexedSessionPrecommitToken {
pub precommit_token: Option<Vec<u8>>,
pub seq_num: Option<i32>,
}Expand description
When a read-write transaction is executed on a multiplexed session, this precommit token is sent back to the client as a part of the Transaction message in the BeginTransaction response and also as a part of the ResultSet and PartialResultSet responses.
This type is not used in any activity, and only used as part of another schema.
Fields§
§precommit_token: Option<Vec<u8>>Opaque precommit token.
seq_num: Option<i32>An incrementing seq number is generated on every precommit token that is returned. Clients should remember the precommit token with the highest sequence number from the current transaction attempt.
Trait Implementations§
Source§impl Clone for MultiplexedSessionPrecommitToken
impl Clone for MultiplexedSessionPrecommitToken
Source§fn clone(&self) -> MultiplexedSessionPrecommitToken
fn clone(&self) -> MultiplexedSessionPrecommitToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for MultiplexedSessionPrecommitToken
impl Default for MultiplexedSessionPrecommitToken
Source§fn default() -> MultiplexedSessionPrecommitToken
fn default() -> MultiplexedSessionPrecommitToken
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MultiplexedSessionPrecommitToken
impl<'de> Deserialize<'de> for MultiplexedSessionPrecommitToken
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for MultiplexedSessionPrecommitToken
Auto Trait Implementations§
impl Freeze for MultiplexedSessionPrecommitToken
impl RefUnwindSafe for MultiplexedSessionPrecommitToken
impl Send for MultiplexedSessionPrecommitToken
impl Sync for MultiplexedSessionPrecommitToken
impl Unpin for MultiplexedSessionPrecommitToken
impl UnwindSafe for MultiplexedSessionPrecommitToken
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
Mutably borrows from an owned value. Read more