ABI encapsulations; generate leaf code in pub fn's rather than inling them.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-08-02 03:36:42 +00:00
parent fa3b72947a
commit 4b9b85f671
10 changed files with 24 additions and 21 deletions

View File

@@ -105,7 +105,6 @@ impl crate::Service for Service {
}
impl Service {
#[inline]
#[tracing::instrument(
level = "trace",
skip_all,
@@ -114,7 +113,6 @@ impl Service {
)]
pub async fn wait_pending(&self) -> Result<u64> { self.db.wait_pending().await }
#[inline]
#[tracing::instrument(
level = "trace",
skip_all,
@@ -123,20 +121,17 @@ impl Service {
)]
pub async fn wait_count(&self, count: &u64) -> Result<u64> { self.db.wait_count(count).await }
#[inline]
#[must_use]
#[tracing::instrument(
level = "debug",
skip_all,
fields(pending = ?self.pending_count()),
)]
#[must_use]
pub fn next_count(&self) -> data::Permit { self.db.next_count() }
#[inline]
#[must_use]
pub fn current_count(&self) -> u64 { self.db.current_count() }
#[inline]
#[must_use]
pub fn pending_count(&self) -> Range<u64> { self.db.pending_count() }