pub trait VerifiedControlConnector: Send + Sync {
// Required methods
fn connect(
&self,
deadline: Instant,
) -> BoxFuture<'_, ControlClientResult<BoxTransport>>;
fn verify_session(
&self,
deadline: Instant,
) -> BoxFuture<'_, ControlClientResult<()>>;
}Expand description
A connector that binds every returned stream to one verified runtime.
Implementations must verify the connected peer’s process identity and stable OS birth token on every dial, not merely check a PID or endpoint path. The backend owns database/run identity and keeps any required OS process handles.
Required Methods§
Sourcefn connect(
&self,
deadline: Instant,
) -> BoxFuture<'_, ControlClientResult<BoxTransport>>
fn connect( &self, deadline: Instant, ) -> BoxFuture<'_, ControlClientResult<BoxTransport>>
Open a stream and verify its connected peer before returning ownership.
Peer replacement is RuntimeChanged, distinct from a transport failure.
Sourcefn verify_session(
&self,
deadline: Instant,
) -> BoxFuture<'_, ControlClientResult<()>>
fn verify_session( &self, deadline: Instant, ) -> BoxFuture<'_, ControlClientResult<()>>
Recheck the active run and process identity immediately before admitting
an operation. Return RuntimeChanged if continuity no longer holds.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".