pub struct Following { /* private fields */ }Expand description
Each identity serving one path, handed out as it takes over. Created by
Consumer::follow.
Implementations§
Source§impl Following
impl Following
Sourcepub fn poll_available(
&mut self,
waiter: &Waiter,
) -> Poll<Result<Option<Consumer>, Error>>
pub fn poll_available( &mut self, waiter: &Waiter, ) -> Poll<Result<Option<Consumer>, Error>>
The next change to the identity serving the path; see
Consumer::follow.
Returns the broadcast of each identity as it comes online or takes over, and None
once the path the one handed out last served goes offline, or, when pinned, another
identity takes it over. Returns Error::Closed once the origin closes, and any other
resolution failure as-is, such as a handler refusing the path; the next call then waits
for the serving route to change, even to another route of the same identity, instead of
asking the refusing route again. An abandoned wait keeps its progress for the next call.
Sourcepub async fn available(&mut self) -> Result<Option<Consumer>, Error>
pub async fn available(&mut self) -> Result<Option<Consumer>, Error>
The next change to the identity serving the path; see
Consumer::follow.
Returns the broadcast of each identity as it comes online or takes over, and None
once the path the one handed out last served goes offline, or, when pinned, another
identity takes it over. Returns Error::Closed once the origin closes, and any other
resolution failure as-is, such as a handler refusing the path; the next call then waits
for the serving route to change, even to another route of the same identity, instead of
asking the refusing route again. An abandoned wait keeps its progress for the next call.
Awaits poll_available.