pub struct CanonicalEventSubscription {
pub subscriber_id: SubscriberId,
/* private fields */
}Expand description
Lossless subscription owned by one Loop (never shared with Console).
Fields§
§subscriber_id: SubscriberIdSubscriber id.
Implementations§
Source§impl CanonicalEventSubscription
impl CanonicalEventSubscription
Sourcepub fn new(
subscriber_id: SubscriberId,
rx: Receiver<Result<DeliveredEvent, SubscriptionStatus>>,
) -> Self
pub fn new( subscriber_id: SubscriberId, rx: Receiver<Result<DeliveredEvent, SubscriptionStatus>>, ) -> Self
Create from a channel end.
Sourcepub async fn recv(
&mut self,
) -> Option<Result<DeliveredEvent, SubscriptionStatus>>
pub async fn recv( &mut self, ) -> Option<Result<DeliveredEvent, SubscriptionStatus>>
Receive next delivery or status. None = channel closed.
Auto Trait Implementations§
impl Freeze for CanonicalEventSubscription
impl RefUnwindSafe for CanonicalEventSubscription
impl Send for CanonicalEventSubscription
impl Sync for CanonicalEventSubscription
impl Unpin for CanonicalEventSubscription
impl UnsafeUnpin for CanonicalEventSubscription
impl UnwindSafe for CanonicalEventSubscription
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