[][src]Crate dia_assert

A small kit for confirming user actions via command line

Project

Features

For important tasks, if you want to confirm the user, you can use Assert. It generates a string and asks the user to type it. You can catch if the user fails, and process with your solution. Or you can let Assert exit the process peacefully via process::exit().

Modules

version_info

1.4.0 (March 28th, 2019)

Structs

Assert

Use this struct with Level to assert a user action

Enums

Level

Level

Constants

CODE_NAME

Crate code name

NAME

Crate name

RELEASE_DATE

Crate release date (year/month/day)

TAG

Tag, which can be used for logging...

UUID

Unique universally identifier of this crate. Its CRC-32 is 83221b81.

VERSION

Crate version

Functions

try_n

Tries n times

try_n_with

Tries n times

try_once

Tries once

try_once_with

Tries once