Skip to main content

LocalProtocol

Struct LocalProtocol 

Source
pub struct LocalProtocol {
    pub steps: BTreeMap<String, LocalStep>,
    pub expect_envelopes: BTreeSet<String>,
    pub protocol: Option<CausalProtocol>,
}
Expand description

A role’s local protocol: its Send/Recv steps plus the dialect-level causal protocol, predecessor clauses untouched (raw edges, REQ-610).

Fields§

§steps: BTreeMap<String, LocalStep>

Performative name → step kind; bystander performatives are erased (absent).

§expect_envelopes: BTreeSet<String>

ExpectEnvelope steps (SPEC-015 REQ-709): the performatives whose redacted envelopes this endpoint awaits under a (:causal-locality derive) dialect — a Recv-analogue carrying no payload obligation, one per derived route naming this endpoint.

A separate step set, not a LocalStep variant in steps: a per-occupant endpoint of an indexed role can hold both Send (its own instance) and ExpectEnvelope (its co-occupants’ instances) for one performative type, which a single-valued step map cannot express. Send/Recv steps and payload delivery are untouched; empty under reject (the v1 reading, bit-for-bit).

§protocol: Option<CausalProtocol>

The dialect-level protocol the R5 composition verifies against (ADR-604); shared verbatim across all endpoints.

Trait Implementations§

Source§

impl Clone for LocalProtocol

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LocalProtocol

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for LocalProtocol

Source§

impl PartialEq for LocalProtocol

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for LocalProtocol

Auto Trait Implementations§

§

impl Forget for LocalProtocol

§

impl Freeze for LocalProtocol
where *const LeafNode<String, LocalStep> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(String, LocalStep)>>: Freeze, *const LeafNode<String, SetValZST> is !null: Freeze, PhantomData<Box<(String, SetValZST)>>: Freeze, *const LeafNode<String, StepDecl> is !null: Freeze, PhantomData<Box<(String, StepDecl)>>: Freeze,

§

impl Move for LocalProtocol

§

impl RefUnwindSafe for LocalProtocol

§

impl Send for LocalProtocol
where NodeRef<Owned, String, LocalStep, LeafOrInternal>: Send, BoxRaw<(String, LocalStep)>: Send, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send, BoxRaw<(String, SetValZST)>: Send, NodeRef<Owned, String, StepDecl, LeafOrInternal>: Send, BoxRaw<(String, StepDecl)>: Send,

§

impl Sync for LocalProtocol
where NodeRef<Owned, String, LocalStep, LeafOrInternal>: Sync, BoxRaw<(String, LocalStep)>: Sync, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync, BoxRaw<(String, SetValZST)>: Sync, NodeRef<Owned, String, StepDecl, LeafOrInternal>: Sync, BoxRaw<(String, StepDecl)>: Sync,

§

impl Unpin for LocalProtocol
where *const LeafNode<String, LocalStep> is !null: Unpin, Box<(String, LocalStep)>: Unpin, *const LeafNode<String, SetValZST> is !null: Unpin, Box<(String, SetValZST)>: Unpin, *const LeafNode<String, StepDecl> is !null: Unpin, Box<(String, StepDecl)>: Unpin,

§

impl UnsafeUnpin for LocalProtocol
where *const LeafNode<String, LocalStep> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(String, LocalStep)>>: UnsafeUnpin, *const LeafNode<String, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin, *const LeafNode<String, StepDecl> is !null: UnsafeUnpin, PhantomData<Box<(String, StepDecl)>>: UnsafeUnpin,

§

impl UnwindSafe for LocalProtocol

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.