Skip to main content

MockControlMarker

Trait MockControlMarker 

Source
pub trait MockControlMarker {
    type ControlProxy;

    // Required method
    fn connect_from_namespace() -> Result<Self::ControlProxy, Error>;
}
Expand description

Trait implemented by mock control markers to connect to mock control proxies.

Required Associated Types§

Source

type ControlProxy

The control proxy type associated with this mock.

Required Methods§

Source

fn connect_from_namespace() -> Result<Self::ControlProxy, Error>

Connects to the mock control proxy from the incoming namespace.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§