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]
impl LocalServerpub fn new(app: App) -> Result<LocalServer>[src]
pub fn new(app: App) -> Result<LocalServer>Creates a new instance of LocalServer from a configured App.
This function will return an error if the construction of the runtime is failed.
pub fn client(&mut self) -> Client[src]
pub fn client(&mut self) -> ClientCreate a Client associated with this server.
Trait Implementations
impl Debug for LocalServer[src]
impl Debug for LocalServerAuto Trait Implementations
impl !Send for LocalServer
impl !Send for LocalServerimpl !Sync for LocalServer
impl !Sync for LocalServer