Skip to main content

ResolvedRuntime

Trait ResolvedRuntime 

Source
pub trait ResolvedRuntime: Send + Sync {
    // Required methods
    fn fingerprint(&self) -> &str;
    fn as_any(&self) -> &(dyn Any + 'static);
}
Expand description

One runtime the host resolved for one requirement.

The runtime never learns the executable path or the resolution root: it carries the handle back to the same port for the effect, and the identity a permit is bound to is the fingerprint the host published.

Required Methods§

Source

fn fingerprint(&self) -> &str

Source

fn as_any(&self) -> &(dyn Any + 'static)

The handle as Any, so the port that issued it recovers its own resolution without this crate naming that type.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§