pub struct TxnBeginRequest {
pub txn_id: WireUuid,
pub timeout_seconds: u32,
pub act_as: Option<ActAs>,
}Expand description
TXN_BEGIN (0x0040). The client mints the txn_id; the server binds the
transaction to it for the duration of the session.
Fields§
§txn_id: WireUuid§timeout_seconds: u32§act_as: Option<ActAs>Effective identity every write buffered in this transaction commits as.
Delegation is fixed at begin and applies to the whole txn; TXN_COMMIT
carries no act_as of its own. None (omitted on the wire) means the
txn commits as the connection’s own key-bound identity.
Trait Implementations§
Source§impl Clone for TxnBeginRequest
impl Clone for TxnBeginRequest
Source§impl Debug for TxnBeginRequest
impl Debug for TxnBeginRequest
Source§impl<'de> Deserialize<'de> for TxnBeginRequest
impl<'de> Deserialize<'de> for TxnBeginRequest
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 Eq for TxnBeginRequest
Source§impl PartialEq for TxnBeginRequest
impl PartialEq for TxnBeginRequest
Source§impl Serialize for TxnBeginRequest
impl Serialize for TxnBeginRequest
impl StructuralPartialEq for TxnBeginRequest
Auto Trait Implementations§
impl Freeze for TxnBeginRequest
impl RefUnwindSafe for TxnBeginRequest
impl Send for TxnBeginRequest
impl Sync for TxnBeginRequest
impl Unpin for TxnBeginRequest
impl UnsafeUnpin for TxnBeginRequest
impl UnwindSafe for TxnBeginRequest
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