Trait shipyard::IntoWorkloadSystem [−][src]
Trait used to add systems to a workload.
Usually you don’t have to use it directly.
Required methods
fn into_workload_system(self) -> Result<WorkloadSystem, InvalidSystem>
[src]
Wraps a function in a struct containing all information required by a workload.
fn into_workload_try_system<Ok, Err: Into<Box<dyn Error + Send + Sync>>>(
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
[src]
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
Wraps a failible function in a struct containing all information required by a workload.
The workload will stop if an error is returned.
Implementors
impl IntoWorkloadSystem<(), ()> for WorkloadSystem
[src]
fn into_workload_system(self) -> Result<WorkloadSystem, InvalidSystem>
[src]
fn into_workload_try_system<Ok, Err>(
self
) -> Result<WorkloadSystem, InvalidSystem>
[src]
self
) -> Result<WorkloadSystem, InvalidSystem>
impl<A: IntoBorrow + BorrowInfo, B: IntoBorrow + BorrowInfo, C: IntoBorrow + BorrowInfo, D: IntoBorrow + BorrowInfo, E: IntoBorrow + BorrowInfo, F: IntoBorrow + BorrowInfo, G: IntoBorrow + BorrowInfo, H: IntoBorrow + BorrowInfo, I: IntoBorrow + BorrowInfo, J: IntoBorrow + BorrowInfo, R, Func> IntoWorkloadSystem<(A, B, C, D, E, F, G, H, I, J), R> for Func where
Func: 'static + Send + Sync + Fn(A, B, C, D, E, F, G, H, I, J) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View, <D::Borrow as Borrow<'_>>::View, <E::Borrow as Borrow<'_>>::View, <F::Borrow as Borrow<'_>>::View, <G::Borrow as Borrow<'_>>::View, <H::Borrow as Borrow<'_>>::View, <I::Borrow as Borrow<'_>>::View, <J::Borrow as Borrow<'_>>::View) -> R,
[src]
Func: 'static + Send + Sync + Fn(A, B, C, D, E, F, G, H, I, J) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View, <D::Borrow as Borrow<'_>>::View, <E::Borrow as Borrow<'_>>::View, <F::Borrow as Borrow<'_>>::View, <G::Borrow as Borrow<'_>>::View, <H::Borrow as Borrow<'_>>::View, <I::Borrow as Borrow<'_>>::View, <J::Borrow as Borrow<'_>>::View) -> R,
fn into_workload_system(self) -> Result<WorkloadSystem, InvalidSystem>
[src]
fn into_workload_try_system<Ok, Err: Into<Box<dyn Error + Send + Sync>>>(
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
[src]
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
impl<A: IntoBorrow + BorrowInfo, B: IntoBorrow + BorrowInfo, C: IntoBorrow + BorrowInfo, D: IntoBorrow + BorrowInfo, E: IntoBorrow + BorrowInfo, F: IntoBorrow + BorrowInfo, G: IntoBorrow + BorrowInfo, H: IntoBorrow + BorrowInfo, I: IntoBorrow + BorrowInfo, R, Func> IntoWorkloadSystem<(A, B, C, D, E, F, G, H, I), R> for Func where
Func: 'static + Send + Sync + Fn(A, B, C, D, E, F, G, H, I) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View, <D::Borrow as Borrow<'_>>::View, <E::Borrow as Borrow<'_>>::View, <F::Borrow as Borrow<'_>>::View, <G::Borrow as Borrow<'_>>::View, <H::Borrow as Borrow<'_>>::View, <I::Borrow as Borrow<'_>>::View) -> R,
[src]
Func: 'static + Send + Sync + Fn(A, B, C, D, E, F, G, H, I) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View, <D::Borrow as Borrow<'_>>::View, <E::Borrow as Borrow<'_>>::View, <F::Borrow as Borrow<'_>>::View, <G::Borrow as Borrow<'_>>::View, <H::Borrow as Borrow<'_>>::View, <I::Borrow as Borrow<'_>>::View) -> R,
fn into_workload_system(self) -> Result<WorkloadSystem, InvalidSystem>
[src]
fn into_workload_try_system<Ok, Err: Into<Box<dyn Error + Send + Sync>>>(
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
[src]
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
impl<A: IntoBorrow + BorrowInfo, B: IntoBorrow + BorrowInfo, C: IntoBorrow + BorrowInfo, D: IntoBorrow + BorrowInfo, E: IntoBorrow + BorrowInfo, F: IntoBorrow + BorrowInfo, G: IntoBorrow + BorrowInfo, H: IntoBorrow + BorrowInfo, R, Func> IntoWorkloadSystem<(A, B, C, D, E, F, G, H), R> for Func where
Func: 'static + Send + Sync + Fn(A, B, C, D, E, F, G, H) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View, <D::Borrow as Borrow<'_>>::View, <E::Borrow as Borrow<'_>>::View, <F::Borrow as Borrow<'_>>::View, <G::Borrow as Borrow<'_>>::View, <H::Borrow as Borrow<'_>>::View) -> R,
[src]
Func: 'static + Send + Sync + Fn(A, B, C, D, E, F, G, H) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View, <D::Borrow as Borrow<'_>>::View, <E::Borrow as Borrow<'_>>::View, <F::Borrow as Borrow<'_>>::View, <G::Borrow as Borrow<'_>>::View, <H::Borrow as Borrow<'_>>::View) -> R,
fn into_workload_system(self) -> Result<WorkloadSystem, InvalidSystem>
[src]
fn into_workload_try_system<Ok, Err: Into<Box<dyn Error + Send + Sync>>>(
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
[src]
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
impl<A: IntoBorrow + BorrowInfo, B: IntoBorrow + BorrowInfo, C: IntoBorrow + BorrowInfo, D: IntoBorrow + BorrowInfo, E: IntoBorrow + BorrowInfo, F: IntoBorrow + BorrowInfo, G: IntoBorrow + BorrowInfo, R, Func> IntoWorkloadSystem<(A, B, C, D, E, F, G), R> for Func where
Func: 'static + Send + Sync + Fn(A, B, C, D, E, F, G) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View, <D::Borrow as Borrow<'_>>::View, <E::Borrow as Borrow<'_>>::View, <F::Borrow as Borrow<'_>>::View, <G::Borrow as Borrow<'_>>::View) -> R,
[src]
Func: 'static + Send + Sync + Fn(A, B, C, D, E, F, G) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View, <D::Borrow as Borrow<'_>>::View, <E::Borrow as Borrow<'_>>::View, <F::Borrow as Borrow<'_>>::View, <G::Borrow as Borrow<'_>>::View) -> R,
fn into_workload_system(self) -> Result<WorkloadSystem, InvalidSystem>
[src]
fn into_workload_try_system<Ok, Err: Into<Box<dyn Error + Send + Sync>>>(
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
[src]
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
impl<A: IntoBorrow + BorrowInfo, B: IntoBorrow + BorrowInfo, C: IntoBorrow + BorrowInfo, D: IntoBorrow + BorrowInfo, E: IntoBorrow + BorrowInfo, F: IntoBorrow + BorrowInfo, R, Func> IntoWorkloadSystem<(A, B, C, D, E, F), R> for Func where
Func: 'static + Send + Sync + Fn(A, B, C, D, E, F) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View, <D::Borrow as Borrow<'_>>::View, <E::Borrow as Borrow<'_>>::View, <F::Borrow as Borrow<'_>>::View) -> R,
[src]
Func: 'static + Send + Sync + Fn(A, B, C, D, E, F) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View, <D::Borrow as Borrow<'_>>::View, <E::Borrow as Borrow<'_>>::View, <F::Borrow as Borrow<'_>>::View) -> R,
fn into_workload_system(self) -> Result<WorkloadSystem, InvalidSystem>
[src]
fn into_workload_try_system<Ok, Err: Into<Box<dyn Error + Send + Sync>>>(
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
[src]
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
impl<A: IntoBorrow + BorrowInfo, B: IntoBorrow + BorrowInfo, C: IntoBorrow + BorrowInfo, D: IntoBorrow + BorrowInfo, E: IntoBorrow + BorrowInfo, R, Func> IntoWorkloadSystem<(A, B, C, D, E), R> for Func where
Func: 'static + Send + Sync + Fn(A, B, C, D, E) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View, <D::Borrow as Borrow<'_>>::View, <E::Borrow as Borrow<'_>>::View) -> R,
[src]
Func: 'static + Send + Sync + Fn(A, B, C, D, E) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View, <D::Borrow as Borrow<'_>>::View, <E::Borrow as Borrow<'_>>::View) -> R,
fn into_workload_system(self) -> Result<WorkloadSystem, InvalidSystem>
[src]
fn into_workload_try_system<Ok, Err: Into<Box<dyn Error + Send + Sync>>>(
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
[src]
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
impl<A: IntoBorrow + BorrowInfo, B: IntoBorrow + BorrowInfo, C: IntoBorrow + BorrowInfo, D: IntoBorrow + BorrowInfo, R, Func> IntoWorkloadSystem<(A, B, C, D), R> for Func where
Func: 'static + Send + Sync + Fn(A, B, C, D) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View, <D::Borrow as Borrow<'_>>::View) -> R,
[src]
Func: 'static + Send + Sync + Fn(A, B, C, D) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View, <D::Borrow as Borrow<'_>>::View) -> R,
fn into_workload_system(self) -> Result<WorkloadSystem, InvalidSystem>
[src]
fn into_workload_try_system<Ok, Err: Into<Box<dyn Error + Send + Sync>>>(
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
[src]
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
impl<A: IntoBorrow + BorrowInfo, B: IntoBorrow + BorrowInfo, C: IntoBorrow + BorrowInfo, R, Func> IntoWorkloadSystem<(A, B, C), R> for Func where
Func: 'static + Send + Sync + Fn(A, B, C) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View) -> R,
[src]
Func: 'static + Send + Sync + Fn(A, B, C) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View, <C::Borrow as Borrow<'_>>::View) -> R,
fn into_workload_system(self) -> Result<WorkloadSystem, InvalidSystem>
[src]
fn into_workload_try_system<Ok, Err: Into<Box<dyn Error + Send + Sync>>>(
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
[src]
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
impl<A: IntoBorrow + BorrowInfo, B: IntoBorrow + BorrowInfo, R, Func> IntoWorkloadSystem<(A, B), R> for Func where
Func: 'static + Send + Sync + Fn(A, B) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View) -> R,
[src]
Func: 'static + Send + Sync + Fn(A, B) -> R + Fn(<A::Borrow as Borrow<'_>>::View, <B::Borrow as Borrow<'_>>::View) -> R,
fn into_workload_system(self) -> Result<WorkloadSystem, InvalidSystem>
[src]
fn into_workload_try_system<Ok, Err: Into<Box<dyn Error + Send + Sync>>>(
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
[src]
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
impl<A: IntoBorrow + BorrowInfo, R, Func> IntoWorkloadSystem<(A,), R> for Func where
Func: 'static + Send + Sync + Fn(A) -> R + Fn(<A::Borrow as Borrow<'_>>::View) -> R,
[src]
Func: 'static + Send + Sync + Fn(A) -> R + Fn(<A::Borrow as Borrow<'_>>::View) -> R,
fn into_workload_system(self) -> Result<WorkloadSystem, InvalidSystem>
[src]
fn into_workload_try_system<Ok, Err: Into<Box<dyn Error + Send + Sync>>>(
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,
[src]
self
) -> Result<WorkloadSystem, InvalidSystem> where
R: Into<Result<Ok, Err>>,