pub struct ExitBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ExitBuilder<S>
impl<S: State> ExitBuilder<S>
Sourcepub fn code(self, value: impl Into<ExitCode>) -> ExitBuilder<SetCode<S>>where
S::Code: IsUnset,
pub fn code(self, value: impl Into<ExitCode>) -> ExitBuilder<SetCode<S>>where
S::Code: IsUnset,
Required.
The exit code of the process
Sourcepub fn text(self, value: impl Into<String>) -> ExitBuilder<SetText<S>>where
S::Text: IsUnset,
pub fn text(self, value: impl Into<String>) -> ExitBuilder<SetText<S>>where
S::Text: IsUnset,
Sourcepub fn maybe_text(
self,
value: Option<impl Into<String>>,
) -> ExitBuilder<SetText<S>>where
S::Text: IsUnset,
pub fn maybe_text(
self,
value: Option<impl Into<String>>,
) -> ExitBuilder<SetText<S>>where
S::Text: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for ExitBuilder<S>
impl<S> RefUnwindSafe for ExitBuilder<S>
impl<S> Send for ExitBuilder<S>
impl<S> Sync for ExitBuilder<S>
impl<S> Unpin for ExitBuilder<S>
impl<S> UnsafeUnpin for ExitBuilder<S>
impl<S> UnwindSafe for ExitBuilder<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