pub struct Options { /* fields omitted */ }
Configuration options for the server.
This struct provides a builder-style API for constructing the desired options.
use nickel::{Nickel, Options};
let mut server = Nickel::new();
server.options = Options::default()
.output_on_listen(false)
.thread_count(Some(8));
Whether the server should print the local address it is listening on when starting.
Defaults to true
.
The number of threads the server should use or None
to use the
hyper
's default of 1.25 * core_count
.
Defaults to None
.
The TemplateCache reload policy. Defaults to ReloadPolicy::Never.
Returns the "default value" for a type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
impl<T> Typeable for T where T: Any, | |
Get the TypeId
of this object.
impl<T> UnsafeAny for T where T: Any, | |