Struct tsukuyomi::local::LocalServer[][src]

pub struct LocalServer { /* fields omitted */ }

A local server which emulates an HTTP service without using the low-level transport.

This type wraps an App and a single-threaded Tokio runtime.

Methods

impl LocalServer
[src]

Creates a new instance of LocalServer from a configured App.

This function will return an error if the construction of the runtime is failed.

Create a Client associated with this server.

Trait Implementations

impl Debug for LocalServer
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for LocalServer

impl !Sync for LocalServer