pub struct SubscriberControl { /* private fields */ }Expand description
A cloneable handle to a subscriber’s delivery preferences.
This updates the same subscription as the owning Subscriber without
borrowing its read cursor, so callers can change delivery priority, group
ordering priority, or group bounds while another task is waiting for groups.
Implementations§
Source§impl SubscriberControl
impl SubscriberControl
Sourcepub fn subscription(&self) -> Subscription
pub fn subscription(&self) -> Subscription
This subscriber’s current preferences.
Sourcepub fn update(&self, subscription: Subscription) -> Result<()>
pub fn update(&self, subscription: Subscription) -> Result<()>
Replace this subscriber’s preferences, updating the producer’s aggregate.
Returns Error::Closed if the track already ended; the update is
meaningless at that point and can usually be ignored.
Trait Implementations§
Source§impl Clone for SubscriberControl
impl Clone for SubscriberControl
Source§fn clone(&self) -> SubscriberControl
fn clone(&self) -> SubscriberControl
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 moreAuto Trait Implementations§
impl Freeze for SubscriberControl
impl RefUnwindSafe for SubscriberControl
impl Send for SubscriberControl
impl Sync for SubscriberControl
impl Unpin for SubscriberControl
impl UnsafeUnpin for SubscriberControl
impl UnwindSafe for SubscriberControl
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