pub trait ServerRef: AsAny + Send {
    fn is_finished(&self) -> bool;
    fn abort(&self);

    fn wait(self) -> Pin<Box<dyn Future<Output = Result<()>>>>
    where
        Self: Sized + 'static
, { ... } }
Expand description

Interface to engage with a server instance

Required Methods

Returns true if the server is no longer running

Kills the internal task processing new inbound requests

Provided Methods

Implementations

Attempts to convert this ref into a concrete ref by downcasting

Attempts to convert this mutable ref into a concrete mutable ref by downcasting

Attempts to convert this into a concrete, boxed ref by downcasting

Waits for the server to complete by continuously polling the finished state.

Implementors