pub struct ActionBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ActionBuilder<S>
impl<S: State> ActionBuilder<S>
Sourcepub fn build(self) -> Actionwhere
S: IsComplete,
pub fn build(self) -> Actionwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn reboot(self, value: RebootAction) -> ActionBuilder<SetReboot<S>>where
S::Reboot: IsUnset,
pub fn reboot(self, value: RebootAction) -> ActionBuilder<SetReboot<S>>where
S::Reboot: IsUnset,
Sourcepub fn maybe_reboot(
self,
value: Option<RebootAction>,
) -> ActionBuilder<SetReboot<S>>where
S::Reboot: IsUnset,
pub fn maybe_reboot(
self,
value: Option<RebootAction>,
) -> ActionBuilder<SetReboot<S>>where
S::Reboot: IsUnset,
Sourcepub fn shutdown(self, value: ShutdownAction) -> ActionBuilder<SetShutdown<S>>where
S::Shutdown: IsUnset,
pub fn shutdown(self, value: ShutdownAction) -> ActionBuilder<SetShutdown<S>>where
S::Shutdown: IsUnset,
Sourcepub fn maybe_shutdown(
self,
value: Option<ShutdownAction>,
) -> ActionBuilder<SetShutdown<S>>where
S::Shutdown: IsUnset,
pub fn maybe_shutdown(
self,
value: Option<ShutdownAction>,
) -> ActionBuilder<SetShutdown<S>>where
S::Shutdown: IsUnset,
Sourcepub fn panic(self, value: PanicAction) -> ActionBuilder<SetPanic<S>>where
S::Panic: IsUnset,
pub fn panic(self, value: PanicAction) -> ActionBuilder<SetPanic<S>>where
S::Panic: IsUnset,
Sourcepub fn maybe_panic(
self,
value: Option<PanicAction>,
) -> ActionBuilder<SetPanic<S>>where
S::Panic: IsUnset,
pub fn maybe_panic(
self,
value: Option<PanicAction>,
) -> ActionBuilder<SetPanic<S>>where
S::Panic: IsUnset,
Sourcepub fn watchdog(self, value: WatchdogAction) -> ActionBuilder<SetWatchdog<S>>where
S::Watchdog: IsUnset,
pub fn watchdog(self, value: WatchdogAction) -> ActionBuilder<SetWatchdog<S>>where
S::Watchdog: IsUnset,
Sourcepub fn maybe_watchdog(
self,
value: Option<WatchdogAction>,
) -> ActionBuilder<SetWatchdog<S>>where
S::Watchdog: IsUnset,
pub fn maybe_watchdog(
self,
value: Option<WatchdogAction>,
) -> ActionBuilder<SetWatchdog<S>>where
S::Watchdog: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for ActionBuilder<S>
impl<S> RefUnwindSafe for ActionBuilder<S>
impl<S> Send for ActionBuilder<S>
impl<S> Sync for ActionBuilder<S>
impl<S> Unpin for ActionBuilder<S>
impl<S> UnsafeUnpin for ActionBuilder<S>
impl<S> UnwindSafe for ActionBuilder<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