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 JsonSchema for AwaitResult
impl JsonSchema for AwaitResult
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§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 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