pub struct HttpNotificationSubscription { /* private fields */ }Expand description
A bounded independently read HTTP subscription. Closing joins its one worker; dropping signals cancellation and aborts that same task. Received events never execute SQL.
Implementations§
Source§impl HttpNotificationSubscription
impl HttpNotificationSubscription
pub fn initial_ready(&self) -> &NotificationReady
Sourcepub fn identity(&self) -> &NotificationIdentity
pub fn identity(&self) -> &NotificationIdentity
Identity visible to this consumer; advances when Reconnected is consumed, never ahead of its gap event.
pub fn cancellation(&self) -> NotificationCancellation
Sourcepub async fn next_event(&mut self) -> Result<Option<NotificationEvent>, Error>
pub async fn next_event(&mut self) -> Result<Option<NotificationEvent>, Error>
Cancelling this receive future leaves the subscription alive. Close/drop or its explicit cancellation signal stops the owned transport.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpNotificationSubscription
impl RefUnwindSafe for HttpNotificationSubscription
impl Send for HttpNotificationSubscription
impl Sync for HttpNotificationSubscription
impl Unpin for HttpNotificationSubscription
impl UnsafeUnpin for HttpNotificationSubscription
impl UnwindSafe for HttpNotificationSubscription
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<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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