pub struct AsyncLoggerTask { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BackgroundService for AsyncLoggerTask
impl BackgroundService for AsyncLoggerTask
Source§fn start<'life0, 'async_trait>(
&'life0 self,
shutdown: ShutdownWatch,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
shutdown: ShutdownWatch,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
This function is called when the pingora server tries to start all the
services. The background service can return at anytime or wait for the
shutdown signal.Source§fn start_with_ready_notifier<'life0, 'async_trait>(
&'life0 self,
shutdown: Receiver<bool>,
ready_notifier: ServiceReadyNotifier,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn start_with_ready_notifier<'life0, 'async_trait>(
&'life0 self,
shutdown: Receiver<bool>,
ready_notifier: ServiceReadyNotifier,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
This function is called when the pingora server tries to start all the
services. The background service should signal readiness by calling
ready_notifier.notify_ready() once initialization is complete.
The service can return at anytime or wait for the shutdown signal. Read moreAuto Trait Implementations§
impl !Freeze for AsyncLoggerTask
impl !RefUnwindSafe for AsyncLoggerTask
impl Send for AsyncLoggerTask
impl Sync for AsyncLoggerTask
impl Unpin for AsyncLoggerTask
impl UnsafeUnpin for AsyncLoggerTask
impl UnwindSafe for AsyncLoggerTask
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