pub struct Shutdown {
pub id: Uuid,
pub delay: u64,
pub label: String,
pub trigger: bool,
pub extensions: Extensions,
}Expand description
§EntityType Shutdown
§Fully Qualified Namespace
reactive_graph::runtime::Shutdown
§Description
Shutting down the runtime
§Components
| Component | Description | Properties |
|---|---|---|
reactive_graph::core::Action | An action can be triggered |
|
reactive_graph::core::Labeled | The label is a hierarchical path with static segments, named parameters and catch-all parameters. |
|
§Properties
- delay
§Properties from components
- label
- trigger
§JSON Schema
Fields§
§id: Uuid§delay: u64§label: String§Property label
Hierarchical path with static segments, named parameters and catch-all parameters
Data Type: String
Socket Type: None
Mutability: Mutable
trigger: bool§Property trigger
On receiving a boolean trigger the action will be executed
Data Type: Bool
Socket Type: Input
Mutability: Mutable
extensions: ExtensionsImplementations§
Source§impl Shutdown
impl Shutdown
Sourcepub fn builder() -> ShutdownBuilder<((), (), (), (), ())>
pub fn builder() -> ShutdownBuilder<((), (), (), (), ())>
Create a builder for building Shutdown.
On the builder, call .id(...)(optional), .delay(...), .label(...), .trigger(...), .extensions(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of Shutdown.
Source§impl Shutdown
impl Shutdown
pub fn new(delay: u64, label: String, trigger: bool) -> Self
pub fn new_with_id(id: Uuid, delay: u64, label: String, trigger: bool) -> Self
pub fn new_with_extensions( id: Uuid, delay: u64, label: String, trigger: bool, extensions: Extensions, ) -> Self
pub fn id(&self) -> Uuid
Sourcepub fn label(&self) -> String
pub fn label(&self) -> String
§Property label
Hierarchical path with static segments, named parameters and catch-all parameters
Data Type: String
Socket Type: None
Mutability: Mutable
Sourcepub fn set_label(&mut self, label: String)
pub fn set_label(&mut self, label: String)
§Property label
Hierarchical path with static segments, named parameters and catch-all parameters
Data Type: String
Socket Type: None
Mutability: Mutable
Sourcepub fn trigger(&self) -> bool
pub fn trigger(&self) -> bool
§Property trigger
On receiving a boolean trigger the action will be executed
Data Type: Bool
Socket Type: Input
Mutability: Mutable
Sourcepub fn set_trigger(&mut self, trigger: bool)
pub fn set_trigger(&mut self, trigger: bool)
§Property trigger
On receiving a boolean trigger the action will be executed
Data Type: Bool
Socket Type: Input
Mutability: Mutable
pub fn properties(&self) -> PropertyInstances
pub fn extensions(&self) -> Extensions
Trait Implementations§
Source§impl Action for Shutdown
impl Action for Shutdown
Source§fn trigger(&self) -> bool
fn trigger(&self) -> bool
§Property trigger
On receiving a boolean trigger the action will be executed
Data Type: Bool
Socket Type: Input
Mutability: Mutable
Source§fn set_trigger(&mut self, trigger: bool)
fn set_trigger(&mut self, trigger: bool)
§Property trigger
On receiving a boolean trigger the action will be executed
Data Type: Bool
Socket Type: Input
Mutability: Mutable
Source§impl<'de> Deserialize<'de> for Shutdown
impl<'de> Deserialize<'de> for Shutdown
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 Labeled for Shutdown
impl Labeled for Shutdown
impl Eq for Shutdown
impl StructuralPartialEq for Shutdown
Auto Trait Implementations§
impl Freeze for Shutdown
impl !RefUnwindSafe for Shutdown
impl Send for Shutdown
impl Sync for Shutdown
impl Unpin for Shutdown
impl UnwindSafe for Shutdown
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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