pub trait ServerRef: AsAny + Send {
    fn state(&self) -> &ServerState;
    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 a reference to the state of the server

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

Implementors