1 /// Error context reference count local to a given (sub)component
2 ///
3 /// This reference count is localized to a single (sub)component,
4 /// rather than the global cross-component count (i.e. that determines
5 /// when a error context can be completely removed)
6 #[repr(transparent)]
7 pub struct LocalErrorContextRefCount(pub(crate) usize);
8 
9 /// Error context reference count across a [`ComponentInstance`]
10 ///
11 /// Contrasted to `LocalErrorContextRefCount`, this count is maintained
12 /// across all sub-components in a given component.
13 ///
14 /// When this count is zero it is *definitely* safe to remove an error context.
15 #[repr(transparent)]
16 pub struct GlobalErrorContextRefCount(pub(crate) usize);
17