tenorite/
lib.rs

1#![doc = include_str!("../README.md")]
2
3/// The [`TenoriteCaller`] struct, which provides the generic request/reply pattern
4pub mod caller;
5
6/// The [`TenoriteError`] enumeration
7pub mod error;
8
9/// The [`TenoriteRequest`] request encapsulation structure
10pub mod request;
11
12/// The [`TenoriteService`] trait to glue together a custom service
13pub mod service;
14
15/// The [`TenoriteWorker`] trait, which is required for the task to be started by [`TenoriteService`]
16pub mod worker;
17
18pub use caller::TenoriteCaller;
19pub use error::TenoriteError;
20pub use request::TenoriteRequest;
21pub use service::TenoriteService;
22pub use worker::TenoriteWorker;
23
24/// Re-exported from [`mod@async_trait`]
25pub use async_trait::async_trait;
26
27/// Re-export of [`tokio::sync::mpsc::Receiver`], used to define [`TenoriteWorker::task`]
28pub use tokio::sync::mpsc::Receiver;