pub struct Subscribing { /* private fields */ }Expand description
The pollable state of a Consumer::subscribe; awaited via the
kio::Pending wrapper, whose DerefMut exposes Self::update.
Implementations§
Source§impl Subscribing
impl Subscribing
Sourcepub fn poll_ok(&self, waiter: &Waiter) -> Poll<Result<Subscriber>>
pub fn poll_ok(&self, waiter: &Waiter) -> Poll<Result<Subscriber>>
Poll until the peer confirms the subscription, yielding the Subscriber.
Errors if the track is aborted or not found.
Sourcepub fn update(&mut self, subscription: Subscription) -> Result<()>
pub fn update(&mut self, subscription: Subscription) -> Result<()>
Change the subscription preferences before (or after) it resolves.
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 Subscribing
impl RefUnwindSafe for Subscribing
impl Send for Subscribing
impl Sync for Subscribing
impl Unpin for Subscribing
impl UnsafeUnpin for Subscribing
impl UnwindSafe for Subscribing
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