Expand description
See README.md for more
Modules§
- cli_
docker - Docker container management, using the “docker” OS command as a backend.
- net_
message - Communication with
NetMessenger
Structs§
- Command
- An OS Command, this is
tokio::process::Command
wrapped in a bunch of helping functionality. - Command
Result - The result of a Command
- Command
Result NoDebug - The same as a CommandResult, but the stdout and stderr are not included in the debug info
- Command
Runner - Detached
Commands
are represented by this struct. - CtrlC
Task - A convenience wrapper around the functionality of tokio::signal::ctrl_c
- File
Options - A wrapper combining capabilities from
tokio::fs::{OpenOptions, File}
with a lot of opinionated defaults andclose_file
. - Write
Options
Enums§
Functions§
- acquire_
dir_ path - Canonicalizes and checks the existence of a directory path. Also adds on better information to errors.
- acquire_
file_ path - Canonicalizes and checks the existence of a file path. Also adds on better information to errors.
- acquire_
path - Canonicalizes and checks the existence of a path. Also adds on better information to errors.
- close_
file - This function makes sure changes are flushed and
sync_all
is called to make sure the file has actually been completely written to the filesystem and closed before the end of this function. - get_
separated_ val - First, this splits by
separate
, trims outer whitespace, sees ifkey
is prefixed, if so it also stripsinter_key_val
and returns the stripped and trimmed value. - random_
name - remove_
files_ in_ dir - This is a guarded kind of removal that only removes all files in a directory
that match an element of
ends_with
. If the element starts with “.”, extensions are matched against, otherwise whole file names are matched against. Only whole extension components are matched against. - sh
- Equivalent to calling
Command::new(program_with_args[0]).args(program_with_args[1..]) .debug(true).run_to_completion().await?.assert_success()?;
and returning the stdout as aString
. - sh_
no_ debug - sh but without debug mode
- type_
hash - Takes the hash of the type name of
T
and returns it. Has the potential to change between compiler versions. - wait_
for_ ok - Repeatedly polls
f
until it returns anOk
which is returned, ornum_retries
is reached in which a timeout error is returned.