pub struct Dynamic { /* private fields */ }Expand description
Picks up Consumer::request_broadcast calls for paths that are not announced.
The origin-level analogue of broadcast::Dynamic: where that serves tracks on
demand within a broadcast, this serves whole broadcasts on demand within an origin. A
relay uses it as a fallback router, fetching a broadcast from upstream only when a
downstream consumer asks for an exact path that nobody announced.
Served broadcasts are deliberately not announced, so they never appear in
Consumer::announced. Drop this handle (and every clone) to reject the
requests still waiting to be served.
Implementations§
Source§impl Dynamic
impl Dynamic
Sourcepub fn poll_requested_broadcast(
&mut self,
waiter: &Waiter,
) -> Poll<Result<Request, Error>>
pub fn poll_requested_broadcast( &mut self, waiter: &Waiter, ) -> Poll<Result<Request, Error>>
Poll for the next requested broadcast, without blocking.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dynamic
impl RefUnwindSafe for Dynamic
impl Send for Dynamic
impl Sync for Dynamic
impl Unpin for Dynamic
impl UnsafeUnpin for Dynamic
impl UnwindSafe for Dynamic
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