pub struct PromiseId {
pub worker_id: WorkerId,
pub oplog_idx: OplogIndex,
}
Expand description
A promise ID is a value that can be passed to an external Golem API to complete that promise from an arbitrary external source, while Golem workers can await for this completion.
Fields§
§worker_id: WorkerId
§oplog_idx: OplogIndex
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PromiseId
impl RefUnwindSafe for PromiseId
impl Send for PromiseId
impl Sync for PromiseId
impl Unpin for PromiseId
impl UnwindSafe for PromiseId
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