Struct homestar_invocation::pointer::Await
source · pub struct Await { /* private fields */ }Expand description
Describes the eventual output of the referenced Instruction as a Pointer, either resolving to a tagged OK_BRANCH, ERR_BRANCH, or direct result of a PTR_BRANCH.
Implementations§
source§impl Await
impl Await
sourcepub fn new(instruction: Pointer, result: AwaitResult) -> Self
pub fn new(instruction: Pointer, result: AwaitResult) -> Self
A new Promise Await’ed on, resulting in a Pointer
and AwaitResult.
sourcepub fn instruction_cid(&self) -> Cid
pub fn instruction_cid(&self) -> Cid
Return [Cid] to Instruction being Await’ed on.
sourcepub fn result(&self) -> &AwaitResult
pub fn result(&self) -> &AwaitResult
Return AwaitResult branch.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Await
impl<'de> Deserialize<'de> for Await
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
source§impl PartialEq for Await
impl PartialEq for Await
impl Eq for Await
impl StructuralEq for Await
impl StructuralPartialEq for Await
Auto Trait Implementations§
impl RefUnwindSafe for Await
impl Send for Await
impl Sync for Await
impl Unpin for Await
impl UnwindSafe for Await
Blanket Implementations§
source§impl<T> Base64Encode for Twhere
T: DagJson,
impl<T> Base64Encode for Twhere
T: DagJson,
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> DagJson for Twhere
T: Serialize + DeserializeOwned,
impl<T> DagJson for Twhere
T: Serialize + DeserializeOwned,
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more