pub struct RuntimePeerCommsHandle { /* private fields */ }Expand description
Runtime-backed PeerCommsHandle impl.
Routes every trait method to the corresponding DSL signal / input on a dedicated per-session MeerkatMachine DSL authority.
Implementations§
Source§impl RuntimePeerCommsHandle
impl RuntimePeerCommsHandle
Sourcepub fn new(dsl: Arc<HandleDslAuthority>) -> Self
pub fn new(dsl: Arc<HandleDslAuthority>) -> Self
Construct a handle backed by the session’s shared DSL authority.
Sourcepub fn install_generated_on(
dsl: Arc<HandleDslAuthority>,
target: &(dyn PeerCommsInstallTarget + '_),
) -> Result<(), String>
pub fn install_generated_on( dsl: Arc<HandleDslAuthority>, target: &(dyn PeerCommsInstallTarget + '_), ) -> Result<(), String>
Install a generated peer-comms handle and its matching trust owner.
The owner token stays on the generated install path; callers receive no reusable token that could be copied into a handwritten handle.
Trait Implementations§
Source§impl Debug for RuntimePeerCommsHandle
impl Debug for RuntimePeerCommsHandle
Source§impl PeerCommsHandle for RuntimePeerCommsHandle
impl PeerCommsHandle for RuntimePeerCommsHandle
Source§fn classify_external_envelope(
&self,
facts: PeerIngressEnvelopeFacts,
) -> Result<PeerIngressAdmission, DslTransitionError>
fn classify_external_envelope( &self, facts: PeerIngressEnvelopeFacts, ) -> Result<PeerIngressAdmission, DslTransitionError>
Fire the
ClassifyExternalEnvelope signal and return machine-owned
admission facts for the parsed envelope.Source§fn classify_plain_event(
&self,
facts: PeerIngressPlainEventFacts,
) -> Result<PeerIngressAdmission, DslTransitionError>
fn classify_plain_event( &self, facts: PeerIngressPlainEventFacts, ) -> Result<PeerIngressAdmission, DslTransitionError>
Fire the
ClassifyPlainEvent signal and return machine-owned
admission facts for the parsed plain event.Source§fn resolve_peer_ingress_receive(
&self,
facts: PeerIngressReceiveFacts,
) -> Result<PeerIngressReceiveAuthority, DslTransitionError>
fn resolve_peer_ingress_receive( &self, facts: PeerIngressReceiveFacts, ) -> Result<PeerIngressReceiveAuthority, DslTransitionError>
Fire
ResolvePeerIngressReceive and return the machine-owned
admission outcome plus authority phase for a classified peer envelope.Source§fn resolve_peer_ingress_dequeue(
&self,
facts: PeerIngressDequeueFacts,
) -> Result<PeerIngressDequeueAuthority, DslTransitionError>
fn resolve_peer_ingress_dequeue( &self, facts: PeerIngressDequeueFacts, ) -> Result<PeerIngressDequeueAuthority, DslTransitionError>
Fire
ResolvePeerIngressDequeue and return the machine-owned
authority phase for a classified queue dequeue observation.Source§fn set_peer_ingress_context(
&self,
keep_alive: bool,
) -> Result<(), DslTransitionError>
fn set_peer_ingress_context( &self, keep_alive: bool, ) -> Result<(), DslTransitionError>
Fire the
SetPeerIngressContext { keep_alive } input.Source§fn install_generated_peer_comms_on_target(
&self,
expected_owner: &GeneratedPeerCommsOwnerToken,
target: &(dyn PeerCommsInstallTarget + '_),
) -> Result<(), String>
fn install_generated_peer_comms_on_target( &self, expected_owner: &GeneratedPeerCommsOwnerToken, target: &(dyn PeerCommsInstallTarget + '_), ) -> Result<(), String>
Route a local-runtime endpoint observation through generated machine
authority and install the accepted generated authority package on the
target.
Auto Trait Implementations§
impl Freeze for RuntimePeerCommsHandle
impl RefUnwindSafe for RuntimePeerCommsHandle
impl Send for RuntimePeerCommsHandle
impl Sync for RuntimePeerCommsHandle
impl Unpin for RuntimePeerCommsHandle
impl UnsafeUnpin for RuntimePeerCommsHandle
impl UnwindSafe for RuntimePeerCommsHandle
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