pub struct RunWithBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> RunWithBuilder<S>
impl<S: State> RunWithBuilder<S>
Sourcepub fn build(self) -> RunWithwhere
S: IsComplete,
pub fn build(self) -> RunWithwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn async_teardown(self, value: OnOff) -> RunWithBuilder<SetAsyncTeardown<S>>where
S::AsyncTeardown: IsUnset,
pub fn async_teardown(self, value: OnOff) -> RunWithBuilder<SetAsyncTeardown<S>>where
S::AsyncTeardown: IsUnset,
Sourcepub fn maybe_async_teardown(
self,
value: Option<OnOff>,
) -> RunWithBuilder<SetAsyncTeardown<S>>where
S::AsyncTeardown: IsUnset,
pub fn maybe_async_teardown(
self,
value: Option<OnOff>,
) -> RunWithBuilder<SetAsyncTeardown<S>>where
S::AsyncTeardown: IsUnset,
Sourcepub fn chroot(self, value: PathBuf) -> RunWithBuilder<SetChroot<S>>where
S::Chroot: IsUnset,
pub fn chroot(self, value: PathBuf) -> RunWithBuilder<SetChroot<S>>where
S::Chroot: IsUnset,
Sourcepub fn maybe_chroot(
self,
value: Option<PathBuf>,
) -> RunWithBuilder<SetChroot<S>>where
S::Chroot: IsUnset,
pub fn maybe_chroot(
self,
value: Option<PathBuf>,
) -> RunWithBuilder<SetChroot<S>>where
S::Chroot: IsUnset,
Sourcepub fn user(self, value: UserOrIds) -> RunWithBuilder<SetUser<S>>where
S::User: IsUnset,
pub fn user(self, value: UserOrIds) -> RunWithBuilder<SetUser<S>>where
S::User: IsUnset,
Sourcepub fn maybe_user(self, value: Option<UserOrIds>) -> RunWithBuilder<SetUser<S>>where
S::User: IsUnset,
pub fn maybe_user(self, value: Option<UserOrIds>) -> RunWithBuilder<SetUser<S>>where
S::User: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for RunWithBuilder<S>
impl<S> RefUnwindSafe for RunWithBuilder<S>
impl<S> Send for RunWithBuilder<S>
impl<S> Sync for RunWithBuilder<S>
impl<S> Unpin for RunWithBuilder<S>
impl<S> UnwindSafe for RunWithBuilder<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