pub struct HandleCompletionState {
waker: AtomicRefCell<Option<Waker>>,
spinlock: AtomicU8,
txn_status: AtomicU8,
execution_error: Option<ExecutionError>,
output: AtomicRefCell<Vec<ActivationOutput>>,
cacheable_dependencies: Vec<(ObjectId, ObjectVersion)>,
}Fields§
§waker: AtomicRefCell<Option<Waker>>§spinlock: AtomicU8§txn_status: AtomicU8§execution_error: Option<ExecutionError>§output: AtomicRefCell<Vec<ActivationOutput>>§cacheable_dependencies: Vec<(ObjectId, ObjectVersion)>Implementations§
source§impl HandleCompletionState
impl HandleCompletionState
pub fn new() -> Self
pub fn wake(&self)
pub fn mark_triggered_and_wake(&self)
pub fn mark_done_and_wake(&self)
pub fn mark_failed_and_wake(&mut self, execution_error: ExecutionError)
pub fn append_result(&self, result: NandoResult)
pub fn append_spawn(&self, ecb_id: EcbId)
pub fn append_cacheable_object( &mut self, object_id: ObjectId, version: ObjectVersion )
pub fn get_result(&self) -> ActivationOutput
pub fn get_output(&self) -> AtomicRef<'_, Vec<ActivationOutput>>
pub fn is_dummy(&self) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for HandleCompletionState
impl Send for HandleCompletionState
impl Sync for HandleCompletionState
impl Unpin for HandleCompletionState
impl UnwindSafe for HandleCompletionState
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