pub struct PromiseId {
pub agent_id: AgentId,
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 agents can await for this completion.
Fields§
§agent_id: AgentId§oplog_idx: OplogIndexTrait Implementations§
Source§impl FromValueAndType for PromiseId
impl FromValueAndType for PromiseId
fn from_extractor<'a, 'b>( extractor: &'a impl WitValueExtractor<'a, 'b>, ) -> Result<Self, String>
fn from_value_and_type(value_and_type: ValueAndType) -> Result<Self, String>
Source§impl IntoValue for PromiseId
impl IntoValue for PromiseId
fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result
fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result
fn into_value(self) -> WitValue
fn get_type() -> WitType
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)