Module bitbazaar::misc

source ·
Expand description

Completely miscellaneous utilities

Modules§

  • Byte manipulation utilities, e.g. transfer speed.

Structs§

  • A periodic updater. Run a callback at a specified time interval. Synchronous. Requires polling. Useful in long running loops to do something at a specified time interval. PeriodicUpdater::maybe_update should be called during each loop.

Traits§

  • An interface that can be used to track arbitrary logging “flows”.

Functions§

  • Binary search for the desired item in the array. Returns None when not exactly found.
  • Binary search for the desired item in the array. Only returns None when the array is empty.
  • Returns true if the current process seems to be running in CI.
  • Check if a port is listening for a given ipv4 address and port.