Skip to main content

Crate matier_core

Crate matier_core 

Source
Expand description

Shared types for Matier: buffer facade over bytesbuf, request Body, Error with recovery classification, OriginKey, the Observer instrumentation hooks and per-request extension types.

Re-exports§

pub use body::Body;
pub use body::BodySender;
pub use body::BodyStream;
pub use error::Error;
pub use error::ErrorKind;
pub use error::Recovery;
pub use error::Result;
pub use ext::BodyTimeout;
pub use ext::ConnectionInfo;
pub use ext::Priority;
pub use ext::ResponseTimeout;
pub use ext::UriTemplate;
pub use observer::ConnectPhase;
pub use observer::NoopObserver;
pub use observer::Observer;
pub use observer::ScaleReason;
pub use origin::OriginKey;
pub use origin::Protocol;
pub use origin::Scheme;

Modules§

body
Request body.
buf
Buffer facade over bytesbuf. Everything in Matier touches bytesbuf through this module so the (frequently breaking, 0.x) dependency can be swapped or upgraded locally.
error
The single error type, with a recovery classification.
ext
Per-request / per-response http::Extensions types.
observer
Instrumentation hooks.
origin
Connection identity.

Structs§

BytesBuf
Assembles byte sequences, exposing them as BytesViews.
BytesView
A view over a sequence of immutable bytes.

Traits§

Service
An async operation from In to Out.