pub struct CredentialReadEventSubscription { /* private fields */ }Expand description
One owned subscription to future credential-read lifecycle events.
Dropping this value unregisters it immediately. A subscriber that falls behind the small bounded queue is also unregistered and observes the stream close after draining the events already retained in order.
Implementations§
Source§impl CredentialReadEventSubscription
impl CredentialReadEventSubscription
pub async fn recv( &mut self, ) -> Result<CredentialReadStatus, CredentialReadEventCloseReason>
Sourcepub fn closed(
&self,
) -> impl Future<Output = CredentialReadEventCloseReason> + Send + 'static
pub fn closed( &self, ) -> impl Future<Output = CredentialReadEventCloseReason> + Send + 'static
Wait independently for this subscription to become unusable.
This wakes even when the event consumer is blocked writing a prior status to its downstream transport.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CredentialReadEventSubscription
impl !UnwindSafe for CredentialReadEventSubscription
impl Freeze for CredentialReadEventSubscription
impl Send for CredentialReadEventSubscription
impl Sync for CredentialReadEventSubscription
impl Unpin for CredentialReadEventSubscription
impl UnsafeUnpin for CredentialReadEventSubscription
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