pub struct RetryFactory;Trait Implementations§
Source§impl PipeFactory for RetryFactory
Available on crate feature std only.
impl PipeFactory for RetryFactory
Available on crate feature
std only.fn name(&self) -> &str
Source§fn build(
&self,
spec: &Value,
inner: Option<PipeHandle>,
) -> Pin<Box<dyn Future<Output = Result<PipeHandle, ProximaError>> + Send + '_>>
fn build( &self, spec: &Value, inner: Option<PipeHandle>, ) -> Pin<Box<dyn Future<Output = Result<PipeHandle, ProximaError>> + Send + '_>>
Build a Pipe from a config spec.
inner carries the next
stage in the chain for wrapping pipes (auth, retry, validate,
transform, …); terminal pipes (synth, http, kv, …) ignore it.
A wrapping factory called with inner: None should error; a
terminal factory called with inner: Some(_) may either ignore
or error — convention is ignore. Read moreAuto Trait Implementations§
impl Freeze for RetryFactory
impl RefUnwindSafe for RetryFactory
impl Send for RetryFactory
impl Sync for RetryFactory
impl Unpin for RetryFactory
impl UnsafeUnpin for RetryFactory
impl UnwindSafe for RetryFactory
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