pub struct Control { /* 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, the max age
budget, or group bounds while another task is waiting for groups.
Implementations§
Source§impl Control
impl Control
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§
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnsafeUnpin for Control
impl UnwindSafe for Control
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