Struct execution_definitions::txn_context::TxnContext
source · pub struct TxnContext {
namespace: String,
log_entry: Arc<RefCell<TransactionLogEntry>>,
ecb: Option<Arc<RefCell<ECB>>>,
object_tracker: Arc<ObjectTracker>,
ownership_tracker: Arc<&'static OwnershipTracker>,
}Fields§
§namespace: String§log_entry: Arc<RefCell<TransactionLogEntry>>§ecb: Option<Arc<RefCell<ECB>>>§object_tracker: Arc<ObjectTracker>§ownership_tracker: Arc<&'static OwnershipTracker>Implementations§
source§impl TxnContext
impl TxnContext
pub fn new( log_entry: Arc<RefCell<TransactionLogEntry>>, object_tracker: Arc<ObjectTracker>, ownership_tracker: &'static OwnershipTracker, _num_args: usize ) -> Self
pub fn get_ecb(&self) -> Option<Arc<RefCell<ECB>>>
pub fn set_ecb(&mut self, ecb: Option<Arc<RefCell<ECB>>>)
pub fn set_namespace(&mut self, namespace: &str)
pub fn get_namespace(&self) -> &str
pub fn get_log_entry(&self) -> Arc<RefCell<TransactionLogEntry>>
pub fn get_object_tracker(&self) -> Arc<ObjectTracker>
pub fn get_ownership_tracker(&self) -> &'static OwnershipTracker
pub fn is_part_of_epic(&self) -> bool
pub fn set_ecb_result(&self, result: NandoResult)
Auto Trait Implementations§
impl !RefUnwindSafe for TxnContext
impl !Send for TxnContext
impl !Sync for TxnContext
impl Unpin for TxnContext
impl !UnwindSafe for TxnContext
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