pub struct Subscription {
pub subscriber: SubscriberId,
pub predicate: Predicate,
}Expand description
Active predicate subscription for a channel.
Fields§
§subscriber: SubscriberIdSubscriber identity that owns this subscription.
predicate: PredicatePredicate that must match for this subscription to receive a message.
Implementations§
Source§impl Subscription
impl Subscription
Sourcepub const fn new(subscriber: SubscriberId, predicate: Predicate) -> Self
pub const fn new(subscriber: SubscriberId, predicate: Predicate) -> Self
Creates a subscription from a subscriber identity and predicate.
Trait Implementations§
Source§impl Clone for Subscription
impl Clone for Subscription
Source§fn clone(&self) -> Subscription
fn clone(&self) -> Subscription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Subscription
impl Debug for Subscription
Source§impl PartialEq for Subscription
impl PartialEq for Subscription
Source§fn eq(&self, other: &Subscription) -> bool
fn eq(&self, other: &Subscription) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Subscription
Auto Trait Implementations§
impl Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnsafeUnpin for Subscription
impl UnwindSafe for Subscription
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