Skip to main content

Backend

Trait Backend 

Source
pub trait Backend: Send + Sync {
    // Required method
    fn call(&self, call: &Call) -> Result<Reply, Error>;
}
Expand description

What a worker calls. The real one is the Client; the tests give a scripted one.

Required Methods§

Source

fn call(&self, call: &Call) -> Result<Reply, Error>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Backend for Client

Source§

fn call(&self, call: &Call) -> Result<Reply, Error>

Implementors§