Skip to main content

Crate core

Crate core 

Source
Expand description

Core functionalities of tower-embed.

Modules§

headers
Typed HTTP headers to be used with http crate.
http
HTTP body types for requests and responses.

Structs§

Content
A stream of binary content.
Embedded
An embedded binary asset.
Metadata
Metadata associated with an embedded asset.

Traits§

Embed
A trait used to access to binary assets in a directory.

Functions§

content_type
Returns the MIME type of file.
etag
Returns the unique identifier tag of the content.
last_modified
Returns the last modification time of file.

Type Aliases§

BoxError
Type-erased error type.