pub struct NullHooks;Expand description
Zero-cost default impl. Used by the resolver when no hook has been registered. Public so consumers writing tests can opt into “explicitly no hooks” without inventing a noop type.
Trait Implementations§
Source§impl ResolverHooks for NullHooks
impl ResolverHooks for NullHooks
Source§fn on_progress<'life0, 'async_trait>(
&'life0 self,
_event: ProgressEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_progress<'life0, 'async_trait>(
&'life0 self,
_event: ProgressEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Generic progress notification.
Source§fn on_cache_hit<'life0, 'async_trait>(
&'life0 self,
_event: CacheHitEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_cache_hit<'life0, 'async_trait>(
&'life0 self,
_event: CacheHitEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Cache hit at any tier.
Source§fn on_cache_miss<'life0, 'async_trait>(
&'life0 self,
_event: CacheMissEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_cache_miss<'life0, 'async_trait>(
&'life0 self,
_event: CacheMissEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Cache miss at every tier (or expired entry forcing re-fetch).
Source§fn on_error<'life0, 'async_trait>(
&'life0 self,
_event: ErrorEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_error<'life0, 'async_trait>(
&'life0 self,
_event: ErrorEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provider or transform error. Note: hook fires per-source for
NamedMap shapes even though only the first error bubbles up to the
caller as the user-facing ChartError.impl Copy for NullHooks
Auto Trait Implementations§
impl Freeze for NullHooks
impl RefUnwindSafe for NullHooks
impl Send for NullHooks
impl Sync for NullHooks
impl Unpin for NullHooks
impl UnsafeUnpin for NullHooks
impl UnwindSafe for NullHooks
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