pub struct WebThingServer { /* private fields */ }
Expand description

Server to represent a Web Thing over HTTP.

Implementations

Create a new WebThingServer.

Arguments
  • things - list of Things managed by this server
  • port - port to listen on (defaults to 80)
  • hostname - optional host name, i.e. mything.com
  • ssl_options - tuple of SSL options to pass to the actix web server
  • action_generator - action generator struct
  • base_path - base URL to use, rather than ‘/’
  • disable_host_validation - whether or not to disable host validation – note that this can lead to DNS rebinding attacks. None means to use the default, which keeps it enabled.

Return the base actix configuration for the server useful for testing.

Start listening for incoming connections.

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

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more