pub struct Struct {
pub Separator: Separator,
pub Fn: Box<dyn Fn() -> Pin<Box<dyn Future<Output = ()> + Send + 'static>> + Send + 'static>,
}
Expand description
Represents the structure for binary command execution.
This struct holds various fields related to the command execution, including the separator for file paths and a function to execute the command asynchronously.
Fields§
§Separator: Separator
The separator used for file paths.
Fn: Box<dyn Fn() -> Pin<Box<dyn Future<Output = ()> + Send + 'static>> + Send + 'static>
A boxed asynchronous function that returns a pinned future.
Implementations§
Source§impl Struct
impl Struct
Sourcepub fn Fn() -> Self
pub fn Fn() -> Self
Creates a new instance of the Struct.
This function initializes the Struct with the default file path separator and an asynchronous function
that executes the command based on the provided options. The function determines whether to execute
the command in parallel or sequentially based on the Parallel
flag in the options.
§Returns
Returns a new instance of Struct.
Auto Trait Implementations§
impl Freeze for Struct
impl !RefUnwindSafe for Struct
impl Send for Struct
impl !Sync for Struct
impl Unpin for Struct
impl !UnwindSafe for Struct
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more