Struct spaceapi_server::SpaceapiServer[][src]

pub struct SpaceapiServer { /* fields omitted */ }
Expand description

A SpaceAPI server instance.

You can create a new instance using the new constructor method by passing it the host, the port, the Status object and a redis connection info object.

The SpaceapiServer includes a web server through Hyper. Simply call the serve method.

Implementations

Start a HTTP server listening on self.host:self.port.

The call returns an HttpResult<Listening> object, see http://ironframework.io/doc/hyper/server/struct.Listening.html for more information.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Convert self into a value of type T.

Convert self into a value of type T.

Convert self into a value of type T.

Convert self into a value of type T.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.