pub struct GatewayDemand<G> { /* private fields */ }Expand description
DemandSource over c4’s DemandGateway.
Holds the CancelToken so that a shutting-down daemon can withdraw a poll
that is already blocked on a socket; f3 keeps a clone and cancels it.
Implementations§
Source§impl<G: DemandGateway> GatewayDemand<G>
impl<G: DemandGateway> GatewayDemand<G>
Trait Implementations§
Source§impl<G: Debug> Debug for GatewayDemand<G>
impl<G: Debug> Debug for GatewayDemand<G>
Source§impl<G: DemandGateway + 'static> DemandSource for GatewayDemand<G>
impl<G: DemandGateway + 'static> DemandSource for GatewayDemand<G>
Source§fn poll<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: &'life1 ActivityScope,
) -> Pin<Box<dyn Future<Output = PollOutcome> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn poll<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: &'life1 ActivityScope,
) -> Pin<Box<dyn Future<Output = PollOutcome> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Queued runs across
scope, or why there are none to report.Auto Trait Implementations§
impl<G> Freeze for GatewayDemand<G>where
G: Freeze,
impl<G> RefUnwindSafe for GatewayDemand<G>where
G: RefUnwindSafe,
impl<G> Send for GatewayDemand<G>where
G: Send,
impl<G> Sync for GatewayDemand<G>where
G: Sync,
impl<G> Unpin for GatewayDemand<G>where
G: Unpin,
impl<G> UnsafeUnpin for GatewayDemand<G>where
G: UnsafeUnpin,
impl<G> UnwindSafe for GatewayDemand<G>where
G: UnwindSafe,
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