Crate tcplane

Source

Re-exports§

Macros§

  • Arc macro
  • Creates an asynchronous function that takes a closure with parameters and executes it asynchronously.
  • A macro to create a new BTreeMap, providing two usage options:
  • Creates a new BTreeSet<T>.
  • Creates a new BinaryHeap<T>.
  • Creates a new Box instance.
  • Creates a new Cell instance.
  • The clone! macro automatically clones the variables passed to it and immediately executes the closure.
  • Creates a new HashMap instance.
  • Creates a new HashSet instance.
  • Combines multiple paths into a single valid path, handling overlapping slashes.
  • Creates a new LinkedList instance.
  • Creates a new Mutex instance.
  • Output macro
  • Creates a new Rc (Reference Counted) instance.
  • Creates a new RefCell instance.
  • Creates a new RwLock instance.
  • Creates a new String instance.
  • Creates a new Vec instance.
  • Creates a new VecDeque instance.

Structs§

Enums§

Statics§

Traits§

Functions§

  • Asynchronously copies all files from the source directory to the destination directory.
  • Asynchronously copies a file from the source path to the destination path.
  • Asynchronously deletes a directory and all its contents.
  • Asynchronously deletes a file at the given path.
  • Retrieves the size of a file at the specified file_path in bytes.
  • Moves a directory and all its contents to another location asynchronously.
  • Moves a file from the source path to the destination path asynchronously.
  • Reads the content of a file at the specified file_path and converts it to the type T. The conversion is done by using the From<Vec<u8>> trait, which allows the file content (read as raw bytes) to be converted into a type T.
  • Spawns a new thread to run the provided function function in a recoverable manner. If the function function panics during execution, the panic will be caught, and the thread will terminate without crashing the entire program.
  • Spawns a recoverable function with an error-handling function in a new thread.
  • Spawns an asynchronous recoverable function, catches any errors with an error-handling function, and ensures that a final function is always executed, regardless of whether an error occurred.
  • Executes an error-handling function with a given error message within a panic-safe context.
  • Executes a recoverable function within a panic-safe context.
  • Writes the provided content to a file at the specified file_path asynchronously.
  • Copies all files from the source directory to the destination directory.
  • Copies a file from the source path to the destination path.
  • Gets the current day, without the time.
  • Gets the current time, including the date and time.
  • Deletes a directory and all its contents.
  • Deletes a file at the given path.
  • Retrieves the size of a file at the specified file_path in bytes.
  • Moves a directory and all its contents to another location.
  • Moves a file from the source path to the destination path.
  • Output
  • Reads the content of a file at the specified file_path and converts it to the type T. The conversion is done by using the From<Vec<u8>> trait, which allows the file content (read as raw bytes) to be converted into a type T.
  • Spawns a new thread to run the provided function function in a recoverable manner. If the function function panics during execution, the panic will be caught, and the thread will terminate without crashing the entire program.
  • Spawns a recoverable function with an error-handling function in a new thread.
  • Executes an error-handling function with a given error message within a panic-safe context.
  • Executes a recoverable function within a panic-safe context.
  • Converts a panic-captured error value into a string.
  • Converts a panic-captured error value into a string.
  • Writes the provided content to a file at the specified file_path. If the file does not exist, it will be created. If the file exists, the content will be appended to it.

Type Aliases§

Derive Macros§

  • This is an example of how to use the Lombok procedural macro with get and set attributes.