Struct test_patience::Server
[−]
[src]
pub struct Server { /* fields omitted */ }
Entry point for the test, waiting for the application to start
Methods
impl Server
[src]
fn new() -> Result<Server>
Start new TCP server, waiting for the application's startup notification
fn port(&self) -> Result<u16>
Get the port number of the TCP Server
This port number has to sent to the application.
fn wait(self, timeout: Duration) -> Result<Duration>
Block the currently running thread until either the starting application has signaled its successful start or the timeout
period has expired
Returns the duration for which was waited or an error in case of a timeout or invalid startup notification.