1mod client;
2
3pub mod endpoint;
4pub mod transport {
5 #[cfg(feature = "transport-quic")]
6 pub mod quic {
7 pub use ombrac_transport::quic::Connection;
8 pub use ombrac_transport::quic::Error;
9 pub use ombrac_transport::quic::client::Builder;
10 }
11}
12
13pub use client::Client;
14
15#[derive(Debug, thiserror::Error)]
16pub enum Error {
17 #[error("I/O error: {0}")]
18 Io(#[from] std::io::Error),
19
20 #[error("{0}")]
21 JoinError(#[from] tokio::task::JoinError),
22
23 #[error("Secret does not match")]
24 PermissionDenied,
25
26 #[error("{0}")]
27 Timeout(String),
28}
29
30type Result<T> = std::result::Result<T, Error>;