o3 0.24.1

shared-nothing primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::mem::{credit, rc};

/// Exact state that prevented one provided owner from entering a domain.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum Cause {
    Foreign,
    Exhausted { count: u32, limit: u32 },
    Budget(credit::Error),
    Retain(rc::Error),
}

const _: () = assert!(size_of::<Cause>() == 3 * size_of::<usize>());