pub struct SimpleUpdateProcessor;Expand description
Default UpdateProcessor that immediately awaits the coroutine.
This is used when ApplicationBuilder.concurrent_updates is set to an integer – the
semaphore in BaseUpdateProcessor provides the actual bounding.
Trait Implementations§
Source§impl Debug for SimpleUpdateProcessor
impl Debug for SimpleUpdateProcessor
Source§impl Default for SimpleUpdateProcessor
impl Default for SimpleUpdateProcessor
Source§fn default() -> SimpleUpdateProcessor
fn default() -> SimpleUpdateProcessor
Returns the “default value” for a type. Read more
Source§impl UpdateProcessor for SimpleUpdateProcessor
impl UpdateProcessor for SimpleUpdateProcessor
Source§fn do_process_update<'life0, 'async_trait>(
&'life0 self,
_update: Arc<Update>,
coroutine: Pin<Box<dyn Future<Output = ()> + Send>>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn do_process_update<'life0, 'async_trait>(
&'life0 self,
_update: Arc<Update>,
coroutine: Pin<Box<dyn Future<Output = ()> + Send>>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Custom implementation of how to process an update. Must be implemented by the
concrete type. Read more
Auto Trait Implementations§
impl Freeze for SimpleUpdateProcessor
impl RefUnwindSafe for SimpleUpdateProcessor
impl Send for SimpleUpdateProcessor
impl Sync for SimpleUpdateProcessor
impl Unpin for SimpleUpdateProcessor
impl UnsafeUnpin for SimpleUpdateProcessor
impl UnwindSafe for SimpleUpdateProcessor
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