Struct dredd_hooks::IntegrationServer
[−]
[src]
pub struct IntegrationServer {
pub runners: Arc<RwLock<Vec<(usize, Child)>>>,
// some fields omitted
}Server that handles the integration between dredd and the individual hook servers.
Usually doesn't have to be used directly. Use the dredd-hooks-rust binary invoked by dredd instead.
Fields
runners: Arc<RwLock<Vec<(usize, Child)>>>
Methods
impl IntegrationServer[src]
fn new() -> Self
fn setup_hooks(&mut self, hookfiles: Vec<String>)
fn start(srv: IntegrationServer, hookfiles: Vec<String>)
Trait Implementations
impl Clone for IntegrationServer[src]
fn clone(&self) -> IntegrationServer
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Service for IntegrationServer[src]
type Request = String
Requests handled by the service.
type Response = String
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = BoxFuture<Self::Response, Self::Error>
The future response value.
fn call(&self, req: Self::Request) -> Self::Future
Process the request and return the response asynchronously.