pub struct Platform;
Trait Implementationsยง
Sourceยงimpl PlatformInterface for Platform
impl PlatformInterface for Platform
Sourceยงfn make_shebang_command(
path: &Path,
working_directory: Option<&Path>,
_shebang: Shebang<'_>,
) -> Result<Command, OutputError>
fn make_shebang_command( path: &Path, working_directory: Option<&Path>, _shebang: Shebang<'_>, ) -> Result<Command, OutputError>
Construct a command equivalent to running the script at
path
with the
shebang line shebang
Sourceยงfn set_execute_permission(path: &Path) -> Result<()>
fn set_execute_permission(path: &Path) -> Result<()>
Set the execute permission on the file pointed to by
path
Sourceยงfn signal_from_exit_status(exit_status: ExitStatus) -> Option<i32>
fn signal_from_exit_status(exit_status: ExitStatus) -> Option<i32>
Extract the signal from a process exit status, if it was terminated by a
signal
Auto Trait Implementationsยง
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnwindSafe for Platform
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