Module casper_node::utils[][src]

Various functions that are not limited to a particular module, but are too small to warrant being factored out into standalone crates.

Modules

ds

Datasize helper functions.

milliseconds

Load and store milliseconds directly as Duration using serde.

Structs

ReadFileError

Error reading a file.

ResolveAddressError

DNS resolution error.

WithDir

With-directory context.

WriteFileError

Error writing a file

Enums

External

External resource.

ListeningError

An error starting one of the HTTP servers.

LoadError

Error loading external value.

Source

The source of a piece of data.

Statics

OS_PAGE_SIZE

OS page size.

Traits

Loadable

A value that can be loaded from a file.

Functions

read_file

Read complete at path into memory.