From 4d38d0a5bd2dae956d3497cb7e546324cd4646c5 Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Tue, 29 Oct 2024 11:18:42 +0100 Subject: [PATCH] Export SubscriptionActivity so it can be used when driving the session event-loop --- lib/src/client/mod.rs | 2 +- lib/src/client/session/mod.rs | 2 +- lib/src/client/session/services/subscriptions/mod.rs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/client/mod.rs b/lib/src/client/mod.rs index 517f84de7..30fe4b747 100644 --- a/lib/src/client/mod.rs +++ b/lib/src/client/mod.rs @@ -123,7 +123,7 @@ pub use config::{ClientConfig, ClientEndpoint, ClientUserToken, ANONYMOUS_USER_T pub use session::{ Client, DataChangeCallback, EventCallback, MonitoredItem, OnSubscriptionNotification, Session, SessionActivity, SessionConnectMode, SessionEventLoop, SessionPollResult, Subscription, - SubscriptionCallbacks, + SubscriptionActivity, SubscriptionCallbacks, }; pub use transport::AsyncSecureChannel; diff --git a/lib/src/client/session/mod.rs b/lib/src/client/session/mod.rs index d539c7ad7..b19db8f45 100644 --- a/lib/src/client/session/mod.rs +++ b/lib/src/client/session/mod.rs @@ -41,7 +41,7 @@ pub use connect::SessionConnectMode; pub use event_loop::{SessionActivity, SessionEventLoop, SessionPollResult}; pub use services::subscriptions::{ DataChangeCallback, EventCallback, MonitoredItem, OnSubscriptionNotification, Subscription, - SubscriptionCallbacks, + SubscriptionActivity, SubscriptionCallbacks, }; pub use session::Session; diff --git a/lib/src/client/session/services/subscriptions/mod.rs b/lib/src/client/session/services/subscriptions/mod.rs index 24ff936d0..f5584a13c 100644 --- a/lib/src/client/session/services/subscriptions/mod.rs +++ b/lib/src/client/session/services/subscriptions/mod.rs @@ -1,4 +1,6 @@ pub mod event_loop; +pub use event_loop::SubscriptionActivity; + mod service; pub mod state;