[go: up one dir, main page]

Module time::error[][src]

Expand description

Various error types returned by methods in the time crate.

Structs

ComponentRange

An error type indicating that a component provided to a method was out of range, causing a failure.

ConversionRange

An error type indicating that a conversion failed because the target type could not store the initial value.

IndeterminateOffsetlocal-offset

The system’s UTC offset could not be determined at the given datetime.

Enums

Error

A unified error type for anything returned by a method in the time crate.

Formatformatting

An error occurred when formatting.

InvalidFormatDescription(formatting or parsing) and alloc

The format description provided was not valid.

Parseparsing

An error that occurred at some stage of parsing.

ParseFromDescriptionparsing

An error that occurred while parsing the input into a Parsed struct.

TryFromParsedparsing

An error that occurred when converting a Parsed to another type.