pub struct LifecycleTask { /* private fields */ }Expand description
Everything needed to render the task.
Implementations§
Source§impl LifecycleTask
impl LifecycleTask
Sourcepub fn new(
identity: LifecycleTaskIdentity,
principal: TaskPrincipal,
wsl_executable: &WslExecutable,
linux_binary: impl Into<String>,
) -> Self
pub fn new( identity: LifecycleTaskIdentity, principal: TaskPrincipal, wsl_executable: &WslExecutable, linux_binary: impl Into<String>, ) -> Self
Builds the task for one distribution and one Windows account.
Sourcepub fn identity(&self) -> &LifecycleTaskIdentity
pub fn identity(&self) -> &LifecycleTaskIdentity
Which task this is.
Sourcepub fn principal(&self) -> &TaskPrincipal
pub fn principal(&self) -> &TaskPrincipal
The account it runs as.
Sourcepub fn action_arguments(&self) -> Vec<String>
pub fn action_arguments(&self) -> Vec<String>
The action’s argument vector.
The same shape super::probe::LinuxCommand builds for every other
invocation, which is deliberate: the task starts the distribution the
same way the provisioning transaction does, so there is one thing to
get right rather than two.
Sourcepub fn rendered_arguments(&self) -> String
pub fn rendered_arguments(&self) -> String
The vector, quoted into the single string Task Scheduler stores.
Trait Implementations§
Source§impl Clone for LifecycleTask
impl Clone for LifecycleTask
Source§fn clone(&self) -> LifecycleTask
fn clone(&self) -> LifecycleTask
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LifecycleTask
impl RefUnwindSafe for LifecycleTask
impl Send for LifecycleTask
impl Sync for LifecycleTask
impl Unpin for LifecycleTask
impl UnsafeUnpin for LifecycleTask
impl UnwindSafe for LifecycleTask
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