pub struct TransactionOwner {
pub transaction_id: String,
pub owner_pid: i64,
pub owner_identity: String,
pub created_at: String,
}Expand description
What:
The durable owner of one transaction directory.
Why:
The PID and birth identity prove liveness;
created_at,
the invocation start time
as ISO-8601 text,
orders dead transactions for recovery and grants the reservation.
In TS you’d write (pseudocode):
type TransactionOwnerRecord = { schemaVersion: 2; transactionId: string; ownerPid: number; ownerIdentity: string; createdAt: string };Fields§
§transaction_id: StringTransaction ID, equal to the directory name.
owner_pid: i64Wrapper process owning the transaction.
owner_identity: StringProcess-birth identity of the owner.
created_at: StringISO-8601 invocation start time.
Trait Implementations§
Source§impl Clone for TransactionOwner
impl Clone for TransactionOwner
Source§impl Debug for TransactionOwner
impl Debug for TransactionOwner
impl Eq for TransactionOwner
Source§impl PartialEq for TransactionOwner
impl PartialEq for TransactionOwner
impl StructuralPartialEq for TransactionOwner
Auto Trait Implementations§
impl Freeze for TransactionOwner
impl RefUnwindSafe for TransactionOwner
impl Send for TransactionOwner
impl Sync for TransactionOwner
impl Unpin for TransactionOwner
impl UnsafeUnpin for TransactionOwner
impl UnwindSafe for TransactionOwner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more