use core::fmt;
use tracing::dispatcher;
pub mod body;
pub mod bridge;
#[cfg(feature = "client")]
pub mod client;
#[cfg(feature = "discovery")]
pub mod discovery;
pub mod happy_eyeballs;
#[cfg(feature = "client")]
mod lazy;
#[cfg(feature = "pidfile")]
pub mod pidfile;
#[cfg(feature = "server")]
mod rewind;
#[cfg(feature = "server")]
pub mod server;
pub mod stream;
#[allow(unused)]
pub(crate) struct DebugLiteral<T: fmt::Display>(T);
impl<T: fmt::Display> fmt::Debug for DebugLiteral<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
}
}
#[allow(unused)]
pub(crate) fn polled_span(span: &tracing::Span) {
dispatcher::get_default(|dispatch| {
let id = span.id().expect("Missing ID; this is a bug");
if let Some(current) = dispatch.current_span().id() {
dispatch.record_follows_from(&id, current)
}
});
}
pub(crate) mod private {
#[allow(unused)]
pub trait Sealed {}
}