pub struct ProgressMiddleware { /* private fields */ }Expand description
Progress tracking middleware with improved error handling
Implementations§
Source§impl ProgressMiddleware
impl ProgressMiddleware
pub fn new(timeout_seconds: u64) -> ProgressMiddleware
Trait Implementations§
Source§impl TransportMiddleware for ProgressMiddleware
impl TransportMiddleware for ProgressMiddleware
Source§fn process_outgoing<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 mut JsonRpcMessage,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
ProgressMiddleware: 'async_trait,
fn process_outgoing<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 mut JsonRpcMessage,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
ProgressMiddleware: 'async_trait,
Process outgoing message
Source§fn process_incoming<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 mut JsonRpcMessage,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
ProgressMiddleware: 'async_trait,
fn process_incoming<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 mut JsonRpcMessage,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
ProgressMiddleware: 'async_trait,
Process incoming message
Auto Trait Implementations§
impl Freeze for ProgressMiddleware
impl RefUnwindSafe for ProgressMiddleware
impl Send for ProgressMiddleware
impl Sync for ProgressMiddleware
impl Unpin for ProgressMiddleware
impl UnsafeUnpin for ProgressMiddleware
impl UnwindSafe for ProgressMiddleware
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