#[repr(C)]pub enum ComponentState {
Show 14 variants
PreInitialized = 0,
Ready = 1,
Starting = 2,
Running = 3,
Stopping = 4,
Stopped = 5,
Resuming = 6,
Resetting = 7,
Disposing = 8,
Disposed = 9,
Degrading = 10,
Degraded = 11,
Faulting = 12,
Faulted = 13,
}
Expand description
The state of a component within the system.
Variants§
PreInitialized = 0
When a component is instantiated, but not yet ready to fulfill its specification.
Ready = 1
When a component is able to be started.
Starting = 2
When a component is executing its actions on start
.
Running = 3
When a component is operating normally and can fulfill its specification.
Stopping = 4
When a component is executing its actions on stop
.
Stopped = 5
When a component has successfully stopped.
Resuming = 6
When a component is started again after its initial start.
Resetting = 7
When a component is executing its actions on reset
.
Disposing = 8
When a component is executing its actions on dispose
.
Disposed = 9
When a component has successfully shut down and released all of its resources.
Degrading = 10
When a component is executing its actions on degrade
.
Degraded = 11
When a component has successfully degraded and may not meet its full specification.
Faulting = 12
When a component is executing its actions on fault
.
Faulted = 13
When a component has successfully shut down due to a detected fault.
Implementations§
Trait Implementations§
Source§impl Clone for ComponentState
impl Clone for ComponentState
Source§fn clone(&self) -> ComponentState
fn clone(&self) -> ComponentState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ComponentState
impl Debug for ComponentState
Source§impl<'de> Deserialize<'de> for ComponentState
impl<'de> Deserialize<'de> for ComponentState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for ComponentState
impl Display for ComponentState
Source§impl FromStr for ComponentState
impl FromStr for ComponentState
Source§impl Hash for ComponentState
impl Hash for ComponentState
Source§impl IntoEnumIterator for ComponentState
impl IntoEnumIterator for ComponentState
type Iterator = ComponentStateIter
fn iter() -> ComponentStateIter ⓘ
Source§impl IntoPy<Py<PyAny>> for ComponentState
impl IntoPy<Py<PyAny>> for ComponentState
Source§impl Ord for ComponentState
impl Ord for ComponentState
Source§fn cmp(&self, other: &ComponentState) -> Ordering
fn cmp(&self, other: &ComponentState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ComponentState
impl PartialEq for ComponentState
Source§impl PartialOrd for ComponentState
impl PartialOrd for ComponentState
Source§impl PyClass for ComponentState
impl PyClass for ComponentState
Source§impl PyClassImpl for ComponentState
impl PyClassImpl for ComponentState
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§type ThreadChecker = SendablePyClass<ComponentState>
type ThreadChecker = SendablePyClass<ComponentState>
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a ComponentState
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a ComponentState
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut ComponentState
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut ComponentState
Source§impl PyTypeInfo for ComponentState
impl PyTypeInfo for ComponentState
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
object
is an instance of this type or a subclass of this type.§fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
object
is an instance of this type.Source§impl Serialize for ComponentState
impl Serialize for ComponentState
Source§impl TryFrom<&str> for ComponentState
impl TryFrom<&str> for ComponentState
impl Copy for ComponentState
impl Eq for ComponentState
impl StructuralPartialEq for ComponentState
Auto Trait Implementations§
impl Freeze for ComponentState
impl RefUnwindSafe for ComponentState
impl Send for ComponentState
impl Sync for ComponentState
impl Unpin for ComponentState
impl UnwindSafe for ComponentState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> FromPyObject<'_> for Twhere
T: PyClass + Clone,
impl<T> FromPyObject<'_> for Twhere
T: PyClass + Clone,
§fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
§fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
Source§impl<T> Separable for Twhere
T: Display,
impl<T> Separable for Twhere
T: Display,
Source§fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
SeparatorPolicy
. Read more