Home / Docs / Standard library / std.host

ServeError

A kind of the module std.host, which a module imports by name; the prelude does not put it in scope (spec/31 §1). Edition 0.4, 0.5 preview.

una
pub kind ServeError = Interrupted | TimedOut | Closed | NotHeld | BadReply

Why an operation of HttpServer fails (spec/31 §1): Interrupted at a host stop, TimedOut when a deadline of the program cuts the wait of next, Closed after close, NotHeld for a reply right the task does not hold or answered already, and BadReply for a reply the host refuses to send.

Specification

Generated from the standard modules of una v0.4.0 (docs/std/listing.json, which is not part of the specification). The specification governs: spec/14 §1.