Enum homestar_invocation::task::Result
source · pub enum Result<T> {
Ok(T),
Error(T),
Just(T),
}Expand description
Resultant output of an executed Instruction.
Variants§
Ok(T)
Ok branch.
Error(T)
Error branch.
Just(T)
Just branch, meaning just the value. Used for
not incorporating unwrapped ok/error into arg/param, where a
result may show up directly.
Implementations§
Trait Implementations§
source§impl<'expr, T> AsExpression<Binary> for &'expr Result<T>
impl<'expr, T> AsExpression<Binary> for &'expr Result<T>
§type Expression = Bound<Binary, &'expr Result<T>>
type Expression = Bound<Binary, &'expr Result<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<T> AsExpression<Binary> for Result<T>
impl<T> AsExpression<Binary> for Result<T>
§type Expression = Bound<Binary, Result<T>>
type Expression = Bound<Binary, Result<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr, T> AsExpression<Nullable<Binary>> for &'expr Result<T>
impl<'expr, T> AsExpression<Nullable<Binary>> for &'expr Result<T>
§type Expression = Bound<Nullable<Binary>, &'expr Result<T>>
type Expression = Bound<Nullable<Binary>, &'expr Result<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<T> AsExpression<Nullable<Binary>> for Result<T>
impl<T> AsExpression<Nullable<Binary>> for Result<T>
§type Expression = Bound<Nullable<Binary>, Result<T>>
type Expression = Bound<Nullable<Binary>, Result<T>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'de, T> Deserialize<'de> for Result<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Result<T>where
T: Deserialize<'de>,
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<T: PartialEq> PartialEq for Result<T>
impl<T: PartialEq> PartialEq for Result<T>
impl<T> StructuralPartialEq for Result<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Result<T>where
T: RefUnwindSafe,
impl<T> Send for Result<T>where
T: Send,
impl<T> Sync for Result<T>where
T: Sync,
impl<T> Unpin for Result<T>where
T: Unpin,
impl<T> UnwindSafe for Result<T>where
T: UnwindSafe,
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, ST, DB> FromSqlRow<ST, DB> for Twhere
T: Queryable<ST, DB>,
ST: SqlTypeOrSelectable,
DB: Backend,
<T as Queryable<ST, DB>>::Row: FromStaticSqlRow<ST, DB>,
impl<T, ST, DB> FromSqlRow<ST, DB> for Twhere
T: Queryable<ST, DB>,
ST: SqlTypeOrSelectable,
DB: Backend,
<T as Queryable<ST, DB>>::Row: FromStaticSqlRow<ST, DB>,
source§impl<T, ST, DB> FromStaticSqlRow<ST, DB> for T
impl<T, ST, DB> FromStaticSqlRow<ST, DB> for T
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§impl<T> References<RawCodec> for T
impl<T> References<RawCodec> for T
source§impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
source§const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
The number of fields that this type will consume.