pub struct InputPlan {
pub input_adapter_version: u32,
pub resources: Vec<SharedResourceDecl>,
pub order_sensitive_nodes: Vec<String>,
pub isolated_nodes: Vec<String>,
}Expand description
What a run declares about its own causal inputs.
A node that declares nothing gets the safe default: it reads the declared
shared resources at the revision it observed, it sees only its declared
predecessors, and its contributions are ordered by the definition. The two
declarations that change that are isolatedNodes, which removes shared
reads entirely so a causally unrelated branch cannot reach the node’s input,
and orderSensitiveNodes, which makes an arrival-order dependency explicit
rather than accidental.
Fields§
§input_adapter_version: u32§resources: Vec<SharedResourceDecl>§order_sensitive_nodes: Vec<String>Nodes whose business depends on arrival order, and say so.
isolated_nodes: Vec<String>Nodes that read no shared state at all.
Implementations§
Source§impl InputPlan
impl InputPlan
pub fn resource(&self, id: &str) -> Option<&SharedResourceDecl>
pub fn contribution_order(&self, node_id: &str) -> ContributionOrder
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InputPlan
impl<'de> Deserialize<'de> for InputPlan
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InputPlan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InputPlan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for InputPlan
impl Serialize for InputPlan
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for InputPlan
Auto Trait Implementations§
impl Forget for InputPlan
impl Freeze for InputPlan
impl Move for InputPlan
impl RefUnwindSafe for InputPlan
impl Send for InputPlan
impl Sync for InputPlan
impl Unpin for InputPlan
impl UnsafeUnpin for InputPlan
impl UnwindSafe for InputPlan
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