pub enum ErrorKind {
Unavailable,
Unexpected,
Transient,
NotReady,
// some variants omitted
}
Error kind which can be matched over.
Feature is not available; not recoverable.
This is the most permanent failure type and implies the error cannot be
resolved simply by retrying (e.g. the feature may not exist in this
build of the application or on the current platform).
General failure; there may be a chance of recovery on retry.
This is the catch-all kind for errors from known and unknown sources
which do not have a more specific kind / handling method.
It is suggested to retry a couple of times or retry later when
handling; some error sources may be able to resolve themselves,
although this is not likely.
A transient failure which likely can be resolved or worked around.
This error kind exists for a few specific cases where it is known that
the error likely can be resolved internally, but is reported anyway.
Not ready yet: recommended to try again a little later.
This error kind implies the generator needs more time or needs some
other part of the application to do something else first before it is
ready for use; for example this may be used by external generators
which require time for initialization.
True if this kind of error may resolve itself on retry.
See also should_wait()
.
True if we should retry but wait before retrying
This implies should_retry()
is true.
A description of this error kind
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
Performs copy-assignment from source
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
[+]
[+]
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
[−]
🔬 This is a nightly-only experimental API. (try_from
)
[+]
[−]
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static