pub struct Requesting { /* private fields */ }Expand description
The pollable result of Consumer::request_broadcast.
Awaited via the kio::Pending wrapper; resolves to the broadcast::Consumer
immediately when the broadcast was already announced, or once an Dynamic
handler serves the request. Resolves to an error if the request is rejected or every
handler drops before serving it.
Implementations§
Source§impl Requesting
impl Requesting
Sourcepub fn is_queued(&self) -> bool
pub fn is_queued(&self) -> bool
Whether the request was handed to a serving route, rather than decided on the spot.
Fixed at request time, so it distinguishes the two ways
Error::Unroutable arises: a queued request that fails was killed by
its serving route retracting, and the table may already hold a
replacement worth retrying against (Consumer::routed_broadcast does),
while an unqueued failure means nothing could serve the path at all.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Requesting
impl RefUnwindSafe for Requesting
impl Send for Requesting
impl Sync for Requesting
impl Unpin for Requesting
impl UnsafeUnpin for Requesting
impl UnwindSafe for Requesting
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