Struct thruster::Server[][src]

pub struct Server<T: 'static + Context<Response = Response> + Clone + Send + Sync, S: 'static + Send> { /* fields omitted */ }

Implementations

Starts the app with the default tokio runtime execution model

Starts the app with a thread pool optimized for small requests and quick timeouts. This is done internally by spawning a separate thread for each reactor core. This is valuable if all server endpoints are similar in their load, as work is divided evenly among threads. As seanmonstar points out though, this is a very specific use case and might not be useful for everyday work loads.alloc

See the discussion here for more information:

https://users.rust-lang.org/t/getting-tokio-to-match-actix-web-performance/18659/7

Trait Implementations

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.

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.