#[repr(C)]pub enum ComponentTrigger {
Show 15 variants
Initialize = 1,
Start = 2,
StartCompleted = 3,
Stop = 4,
StopCompleted = 5,
Resume = 6,
ResumeCompleted = 7,
Reset = 8,
ResetCompleted = 9,
Dispose = 10,
DisposeCompleted = 11,
Degrade = 12,
DegradeCompleted = 13,
Fault = 14,
FaultCompleted = 15,
}
Expand description
A trigger condition for a component within the system.
Variants§
Initialize = 1
A trigger for the component to initialize.
Start = 2
A trigger for the component to start.
StartCompleted = 3
A trigger when the component has successfully started.
Stop = 4
A trigger for the component to stop.
StopCompleted = 5
A trigger when the component has successfully stopped.
Resume = 6
A trigger for the component to resume (after being stopped).
ResumeCompleted = 7
A trigger when the component has successfully resumed.
Reset = 8
A trigger for the component to reset.
ResetCompleted = 9
A trigger when the component has successfully reset.
Dispose = 10
A trigger for the component to dispose and release resources.
DisposeCompleted = 11
A trigger when the component has successfully disposed.
Degrade = 12
A trigger for the component to degrade.
DegradeCompleted = 13
A trigger when the component has successfully degraded.
Fault = 14
A trigger for the component to fault.
FaultCompleted = 15
A trigger when the component has successfully faulted.
Implementations§
Trait Implementations§
Source§impl Clone for ComponentTrigger
impl Clone for ComponentTrigger
Source§fn clone(&self) -> ComponentTrigger
fn clone(&self) -> ComponentTrigger
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ComponentTrigger
impl Debug for ComponentTrigger
Source§impl<'de> Deserialize<'de> for ComponentTrigger
impl<'de> Deserialize<'de> for ComponentTrigger
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 ComponentTrigger
impl Display for ComponentTrigger
Source§impl FromStr for ComponentTrigger
impl FromStr for ComponentTrigger
Source§impl Hash for ComponentTrigger
impl Hash for ComponentTrigger
Source§impl IntoEnumIterator for ComponentTrigger
impl IntoEnumIterator for ComponentTrigger
type Iterator = ComponentTriggerIter
fn iter() -> ComponentTriggerIter ⓘ
Source§impl IntoPy<Py<PyAny>> for ComponentTrigger
impl IntoPy<Py<PyAny>> for ComponentTrigger
Source§impl Ord for ComponentTrigger
impl Ord for ComponentTrigger
Source§fn cmp(&self, other: &ComponentTrigger) -> Ordering
fn cmp(&self, other: &ComponentTrigger) -> 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 ComponentTrigger
impl PartialEq for ComponentTrigger
Source§impl PartialOrd for ComponentTrigger
impl PartialOrd for ComponentTrigger
Source§impl PyClass for ComponentTrigger
impl PyClass for ComponentTrigger
Source§impl PyClassImpl for ComponentTrigger
impl PyClassImpl for ComponentTrigger
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<ComponentTrigger>
type ThreadChecker = SendablePyClass<ComponentTrigger>
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 ComponentTrigger
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a ComponentTrigger
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut ComponentTrigger
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut ComponentTrigger
Source§impl PyTypeInfo for ComponentTrigger
impl PyTypeInfo for ComponentTrigger
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 ComponentTrigger
impl Serialize for ComponentTrigger
Source§impl TryFrom<&str> for ComponentTrigger
impl TryFrom<&str> for ComponentTrigger
impl Copy for ComponentTrigger
impl Eq for ComponentTrigger
impl StructuralPartialEq for ComponentTrigger
Auto Trait Implementations§
impl Freeze for ComponentTrigger
impl RefUnwindSafe for ComponentTrigger
impl Send for ComponentTrigger
impl Sync for ComponentTrigger
impl Unpin for ComponentTrigger
impl UnwindSafe for ComponentTrigger
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