pub struct ProcessBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ProcessBuilder<S>
impl<S: State> ProcessBuilder<S>
Sourcepub fn build(self) -> Processwhere
S: IsComplete,
pub fn build(self) -> Processwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn output(self, value: Output) -> ProcessBuilder<SetOutput<S>>where
S::Output: IsUnset,
pub fn output(self, value: Output) -> ProcessBuilder<SetOutput<S>>where
S::Output: IsUnset,
Required.
The channel that carries the events of a run
Sourcepub fn cancellation(
self,
value: Cancellation,
) -> ProcessBuilder<SetCancellation<S>>where
S::Cancellation: IsUnset,
pub fn cancellation(
self,
value: Cancellation,
) -> ProcessBuilder<SetCancellation<S>>where
S::Cancellation: IsUnset,
Sourcepub fn maybe_cancellation(
self,
value: Option<Cancellation>,
) -> ProcessBuilder<SetCancellation<S>>where
S::Cancellation: IsUnset,
pub fn maybe_cancellation(
self,
value: Option<Cancellation>,
) -> ProcessBuilder<SetCancellation<S>>where
S::Cancellation: IsUnset,
Sourcepub fn grace_period(self, value: Duration) -> ProcessBuilder<SetGracePeriod<S>>where
S::GracePeriod: IsUnset,
pub fn grace_period(self, value: Duration) -> ProcessBuilder<SetGracePeriod<S>>where
S::GracePeriod: IsUnset,
Sourcepub fn maybe_grace_period(
self,
value: Option<Duration>,
) -> ProcessBuilder<SetGracePeriod<S>>where
S::GracePeriod: IsUnset,
pub fn maybe_grace_period(
self,
value: Option<Duration>,
) -> ProcessBuilder<SetGracePeriod<S>>where
S::GracePeriod: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for ProcessBuilder<S>
impl<S> RefUnwindSafe for ProcessBuilder<S>
impl<S> Send for ProcessBuilder<S>
impl<S> Sync for ProcessBuilder<S>
impl<S> Unpin for ProcessBuilder<S>
impl<S> UnsafeUnpin for ProcessBuilder<S>
impl<S> UnwindSafe for ProcessBuilder<S>
Blanket Implementations§
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