Enum homestar_invocation::pointer::AwaitResult
source · pub enum AwaitResult {
Ok,
Error,
Ptr,
}Expand description
Enumerated wrapper around resulting branches of a promise that’s being awaited on.
Variants and branch strings are interchangable:
Example
use homestar_invocation::pointer::AwaitResult;
let await_result = AwaitResult::Error;
assert_eq!(await_result.branch(), "await/error");
assert_eq!(AwaitResult::result("await/*").unwrap(), AwaitResult::Ptr);Variants§
Ok
Ok branch.
Error
Error branch.
Ptr
Direct resulting branch, without unwrapping of success or failure.
Implementations§
Trait Implementations§
source§impl Clone for AwaitResult
impl Clone for AwaitResult
source§fn clone(&self) -> AwaitResult
fn clone(&self) -> AwaitResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AwaitResult
impl Debug for AwaitResult
source§impl<'de> Deserialize<'de> for AwaitResult
impl<'de> Deserialize<'de> for AwaitResult
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 Display for AwaitResult
impl Display for AwaitResult
source§impl PartialEq for AwaitResult
impl PartialEq for AwaitResult
source§fn eq(&self, other: &AwaitResult) -> bool
fn eq(&self, other: &AwaitResult) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AwaitResult
impl Serialize for AwaitResult
impl Eq for AwaitResult
impl StructuralEq for AwaitResult
impl StructuralPartialEq for AwaitResult
Auto Trait Implementations§
impl RefUnwindSafe for AwaitResult
impl Send for AwaitResult
impl Sync for AwaitResult
impl Unpin for AwaitResult
impl UnwindSafe for AwaitResult
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