pub struct DispatchGate {
pub committed_grant_digest: Option<String>,
pub stop_requested: bool,
pub barrier_active: bool,
pub current_state_visit: Option<u64>,
pub settled_attempts: Vec<String>,
}Expand description
The durable facts a dispatch gate reads. All of them are persisted before the decision is taken.
Fields§
§committed_grant_digest: Option<String>Authority digest currently committed for the run.
stop_requested: boolTrue while a stop covers the graph, this node, or this invocation.
barrier_active: boolTrue while the graph is deliberately held.
current_state_visit: Option<u64>The current state visit for state_id, when the run has one.
settled_attempts: Vec<String>Attempt identities that already settled.
Implementations§
Source§impl DispatchGate
impl DispatchGate
Sourcepub fn evaluate(&self, intent: &DispatchIntent) -> DispatchDecision
pub fn evaluate(&self, intent: &DispatchIntent) -> DispatchDecision
Decide whether one dispatch intent may leave the host.
Routing agreement is checked first because a misrouted intent can never be made safe by later facts; authority, stop, barrier and state-visit fencing follow in a fixed order so the reported refusal is deterministic.
Trait Implementations§
Source§impl Clone for DispatchGate
impl Clone for DispatchGate
Source§fn clone(&self) -> DispatchGate
fn clone(&self) -> DispatchGate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DispatchGate
impl Debug for DispatchGate
Source§impl Default for DispatchGate
impl Default for DispatchGate
Source§fn default() -> DispatchGate
fn default() -> DispatchGate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DispatchGate
impl<'de> Deserialize<'de> for DispatchGate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DispatchGate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DispatchGate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DispatchGate
Source§impl PartialEq for DispatchGate
impl PartialEq for DispatchGate
Source§impl Serialize for DispatchGate
impl Serialize for DispatchGate
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 DispatchGate
Auto Trait Implementations§
impl Forget for DispatchGate
impl Freeze for DispatchGate
impl Move for DispatchGate
impl RefUnwindSafe for DispatchGate
impl Send for DispatchGate
impl Sync for DispatchGate
impl Unpin for DispatchGate
impl UnsafeUnpin for DispatchGate
impl UnwindSafe for DispatchGate
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.