Skip to content

struct

Bridge

pub struct Bridge {
    /* private fields */
}

A handle to an actix app running on its own thread.

Methods

start

pub fn start<C>(configure: C) -> Bridge where C: Fn(&mut ServiceConfig) + Send + 'static

Start the app built by configure.

call

pub async fn call(&self, method: &str, uri: &str, headers: Vec<(String, String)>, body: Vec<u8>) -> Reply

Handle one request.

Trait implementations