pub struct PassthroughPolicy;Expand description
Emits each input unchanged — used as a baseline policy for testing the continuation-boundary mechanics.
Trait Implementations§
Source§impl Debug for PassthroughPolicy
impl Debug for PassthroughPolicy
Source§impl ResequencePolicy for PassthroughPolicy
impl ResequencePolicy for PassthroughPolicy
Source§fn accept<'life0, 'async_trait>(
&'life0 self,
input: Exchange,
) -> Pin<Box<dyn Future<Output = Vec<Exchange>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn accept<'life0, 'async_trait>(
&'life0 self,
input: Exchange,
) -> Pin<Box<dyn Future<Output = Vec<Exchange>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Accept an input; return the list of now-ready exchanges (in emit order).
Source§fn flush<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<Exchange>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn flush<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<Exchange>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Flush all buffered state (shutdown). Return any remaining, ordered.
Source§fn set_timeout_tx(&self, _tx: Sender<Exchange>)
fn set_timeout_tx(&self, _tx: Sender<Exchange>)
Set the driver channel for timeout-triggered emissions.
Default is a no-op.
BatchPolicy overrides this to receive
the channel that feeds the post-driver.Auto Trait Implementations§
impl Freeze for PassthroughPolicy
impl RefUnwindSafe for PassthroughPolicy
impl Send for PassthroughPolicy
impl Sync for PassthroughPolicy
impl Unpin for PassthroughPolicy
impl UnsafeUnpin for PassthroughPolicy
impl UnwindSafe for PassthroughPolicy
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