Skip to main content

harmos_runtime/operations/
refusal.rs

1/* ***
2 *
3 * Harmos
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * ***
8 */
9
10/* === Modules === */
11
12/* === Re-Exports === */
13
14/* === Imports === */
15
16// Standard Library Imports
17
18// Third Party Imports
19
20// Local Imports
21
22/* === Constants === */
23
24/* === Macros === */
25
26/* === Type Aliases === */
27
28/* === Structs === */
29
30/* === Enums === */
31
32#[derive(Clone, Copy, Debug, PartialEq, Eq, thiserror::Error)]
33pub enum Refusal {
34    #[error("the operation deadline elapsed")]
35    TimedOut,
36
37    #[error("the operation was cancelled")]
38    Cancelled,
39
40    #[error("the operation runtime became unavailable")]
41    Unavailable,
42}
43
44/* === Traits === */
45
46/* === Implementations === */
47
48/* === Public Functions === */
49
50/* === Private Functions === */
51
52/* === Tests === */