pub struct RuntimeNode {
pub id: String,
pub bundle: Option<String>,
pub label: Option<String>,
pub compute: ComputeAffinity,
pub const_inputs: Vec<(String, Value)>,
pub sync_groups: Vec<SyncGroup>,
pub metadata: BTreeMap<String, Value>,
}Expand description
Runtime node with policy hints.
use daedalus_runtime::RuntimeNode;
use daedalus_planner::ComputeAffinity;
let node = RuntimeNode {
id: "demo".into(),
bundle: None,
label: None,
compute: ComputeAffinity::CpuOnly,
const_inputs: vec![],
sync_groups: vec![],
metadata: Default::default(),
};
assert_eq!(node.id, "demo");Fields§
§id: String§bundle: Option<String>§label: Option<String>§compute: ComputeAffinity§const_inputs: Vec<(String, Value)>§sync_groups: Vec<SyncGroup>§metadata: BTreeMap<String, Value>Trait Implementations§
Source§impl Clone for RuntimeNode
impl Clone for RuntimeNode
Source§fn clone(&self) -> RuntimeNode
fn clone(&self) -> RuntimeNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeNode
impl Debug for RuntimeNode
Source§impl<'de> Deserialize<'de> for RuntimeNode
impl<'de> Deserialize<'de> for RuntimeNode
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
Source§impl PartialEq for RuntimeNode
impl PartialEq for RuntimeNode
Source§impl Serialize for RuntimeNode
impl Serialize for RuntimeNode
impl StructuralPartialEq for RuntimeNode
Auto Trait Implementations§
impl Freeze for RuntimeNode
impl RefUnwindSafe for RuntimeNode
impl Send for RuntimeNode
impl Sync for RuntimeNode
impl Unpin for RuntimeNode
impl UnwindSafe for RuntimeNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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