pub enum NodeStateChange {
Unchanged,
Update {
update: NodeStateUpdate,
},
}Expand description
State contribution from one successful logical node activation.
Variants§
Unchanged
The activation intentionally emitted no state update.
Update
The activation emitted one schema-validated typed update.
Fields
§
update: NodeStateUpdateExact update consumed by the compiled reducer plan.
Implementations§
Source§impl NodeStateChange
impl NodeStateChange
Sourcepub const fn update(&self) -> Option<&NodeStateUpdate>
pub const fn update(&self) -> Option<&NodeStateUpdate>
Returns the update when this activation changed state.
Trait Implementations§
Source§impl Clone for NodeStateChange
impl Clone for NodeStateChange
Source§impl Debug for NodeStateChange
impl Debug for NodeStateChange
Source§impl<'de> Deserialize<'de> for NodeStateChange
impl<'de> Deserialize<'de> for NodeStateChange
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NodeStateChange
Source§impl JsonSchema for NodeStateChange
impl JsonSchema for NodeStateChange
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for NodeStateChange
impl PartialEq for NodeStateChange
Source§impl Serialize for NodeStateChange
impl Serialize for NodeStateChange
impl StructuralPartialEq for NodeStateChange
Auto Trait Implementations§
impl Forget for NodeStateChange
impl Freeze for NodeStateChange
impl Move for NodeStateChange
impl RefUnwindSafe for NodeStateChange
impl Send for NodeStateChange
impl Sync for NodeStateChange
impl Unpin for NodeStateChange
impl UnsafeUnpin for NodeStateChange
impl UnwindSafe for NodeStateChange
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
Mutably borrows from an owned value. Read more