pub(crate) struct LegacyPushServiceLease {
state: ServerState,
owner: Arc<()>,
registration_attempted: AtomicBool,
}Expand description
One rmcp service instance owns all legacy push rows created by that logical transport session. Rows keep only a weak opaque identity, so TTL and explicit unsubscribe do not leave a second, unbounded handle index behind.
Fields§
§state: ServerState§owner: Arc<()>§registration_attempted: AtomicBoolImplementations§
Source§impl LegacyPushServiceLease
impl LegacyPushServiceLease
pub(crate) fn new(state: ServerState) -> Self
pub(crate) async fn register_push_subscriber( &self, delivery: PushDeliveryTarget, acc_ids: HashSet<u64>, owner_key_id: Option<String>, allowed_acc_ids_snapshot: Option<HashSet<u64>>, allowed_markets_snapshot: Option<HashSet<String>>, ) -> Result<String, String>
Trait Implementations§
Source§impl Drop for LegacyPushServiceLease
impl Drop for LegacyPushServiceLease
Auto Trait Implementations§
impl !Freeze for LegacyPushServiceLease
impl !RefUnwindSafe for LegacyPushServiceLease
impl !UnwindSafe for LegacyPushServiceLease
impl Send for LegacyPushServiceLease
impl Sync for LegacyPushServiceLease
impl Unpin for LegacyPushServiceLease
impl UnsafeUnpin for LegacyPushServiceLease
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more