pub struct ActiveTransaction {
pub transaction_id: String,
pub repo_path: String,
pub thread: String,
pub message: String,
pub state: String,
pub started_at_secs: i64,
pub started_by_email: String,
pub base_state: String,
pub buffered_ops: Vec<String>,
pub aborted_reason: Option<String>,
}Expand description
One open transaction, hydrated from its on-disk sentinel. Field
names match the writer in
crates/daemon/src/grpc_local_impl/transaction.rs::TransactionSentinel
— keep this struct in sync if the writer’s shape changes. The
Serialize impl is used by append_op_to_active_for_thread to
rewrite the sentinel after appending a buffered op.
Fields§
§transaction_id: String§repo_path: String§thread: String§message: String§state: String§started_at_secs: i64§started_by_email: String§base_state: String§buffered_ops: Vec<String>Verbs the CLI has appended via append_op_to_active_for_thread.
Commit reads this list and emits a single OpRecord summary
(the deeper “execute the buffered ops at commit time” routing
is the larger follow-on; today the verbs execute as they
run AND are logged here for audit).
aborted_reason: Option<String>Trait Implementations§
Source§impl Clone for ActiveTransaction
impl Clone for ActiveTransaction
Source§fn clone(&self) -> ActiveTransaction
fn clone(&self) -> ActiveTransaction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActiveTransaction
impl Debug for ActiveTransaction
Source§impl<'de> Deserialize<'de> for ActiveTransaction
impl<'de> Deserialize<'de> for ActiveTransaction
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
Auto Trait Implementations§
impl Freeze for ActiveTransaction
impl RefUnwindSafe for ActiveTransaction
impl Send for ActiveTransaction
impl Sync for ActiveTransaction
impl Unpin for ActiveTransaction
impl UnsafeUnpin for ActiveTransaction
impl UnwindSafe for ActiveTransaction
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<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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request