pub struct TaskSyncWhenIdle;Expand description
Stub task for future sync-when-idle functionality.
Trigger always returns false – this task never runs.
Implementations§
Trait Implementations§
Source§impl WalletMonitorTask for TaskSyncWhenIdle
impl WalletMonitorTask for TaskSyncWhenIdle
Source§fn trigger(&mut self, _now_msecs: u64) -> bool
fn trigger(&mut self, _now_msecs: u64) -> bool
Return true if
run_task needs to be called now.
This is NOT async – it must be a fast, synchronous check.Source§fn run_task<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<String, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run_task<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<String, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the task’s work. Returns a log string describing what was done.
Source§fn async_setup<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn async_setup<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Override to handle async task setup configuration.
Called before the first call to
trigger.Auto Trait Implementations§
impl Freeze for TaskSyncWhenIdle
impl RefUnwindSafe for TaskSyncWhenIdle
impl Send for TaskSyncWhenIdle
impl Sync for TaskSyncWhenIdle
impl Unpin for TaskSyncWhenIdle
impl UnsafeUnpin for TaskSyncWhenIdle
impl UnwindSafe for TaskSyncWhenIdle
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more