pub struct CommandTask { /* private fields */ }Implementations§
Source§impl CommandTask
impl CommandTask
pub fn new( input: impl Into<Input>, engine: impl Into<String>, command: impl Into<String>, arguments: impl Into<String>, ) -> Self
pub fn engine_version(self, engine_version: impl Into<String>) -> Self
pub fn capture_output(self, capture_output: bool) -> Self
pub fn timeout(self, timeout: u64) -> Self
pub fn option(self, key: impl Into<String>, value: impl Into<Value>) -> Self
Trait Implementations§
Source§impl Clone for CommandTask
impl Clone for CommandTask
Source§fn clone(&self) -> CommandTask
fn clone(&self) -> CommandTask
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 moreSource§impl Debug for CommandTask
impl Debug for CommandTask
Source§impl From<CommandTask> for TaskRequest
impl From<CommandTask> for TaskRequest
Source§fn from(value: CommandTask) -> Self
fn from(value: CommandTask) -> Self
Converts to this type from the input type.
Source§impl Serialize for CommandTask
impl Serialize for CommandTask
Source§impl TaskPayload for CommandTask
impl TaskPayload for CommandTask
Auto Trait Implementations§
impl Freeze for CommandTask
impl RefUnwindSafe for CommandTask
impl Send for CommandTask
impl Sync for CommandTask
impl Unpin for CommandTask
impl UnsafeUnpin for CommandTask
impl UnwindSafe for CommandTask
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