pub enum ErrorKind {
DeviceBusy,
DeviceTerminated,
StorageFull,
StorageCorrupted,
InvalidInput,
InconsistentState,
Other,
}
リクエストキューが詰まっている、等の過負荷状態.
また、初期化処理中の場合にも、このエラーが返される.
- 利用者が時間をおいてリトライする
- 優先度が低いリクエストの新規発行をしばらく控える
デバイス(の管理スレッド)が停止しており、利用不可能.
正常・異常に関わらず、停止後のデバイスにリクエストが
発行された場合には、このエラーが返される.
ストレージに空き容量がない.
- 利用者が不要なlumpを削除する
- ストレージの容量を増やした上で、初期化・再構築を行う
ストレージが破損している.
ジャーナル領域のチェックサム検証が失敗した場合等にこのエラーが返される.
- もし人手で復旧可能な場合には復旧する
- それが無理であれば、諦めて初期化(全削除)を行う
内部状態が不整合に陥っている.
プログラムにバグがあることを示している.
その他エラー.
E.g., I/Oエラー
- 利用者側で(指数バックオフ等を挟みつつ)何度かリトライ
- それでもダメなら、致命的な異常が発生していると判断
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
A short description of the error kind. 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
Mutably borrows from an owned value. 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
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static