pub struct RemotePachaLoader<C: HttpClient = NoopHttpClient> { /* private fields */ }Expand description
Remote Pacha loader with HTTP support.
Implementations§
Source§impl<C: HttpClient> RemotePachaLoader<C>
impl<C: HttpClient> RemotePachaLoader<C>
Sourcepub fn with_retry(self, config: RetryConfig) -> Self
pub fn with_retry(self, config: RetryConfig) -> Self
Set retry configuration.
Sourcepub const fn with_cache_ttl(self, ms: u64) -> Self
pub const fn with_cache_ttl(self, ms: u64) -> Self
Set cache TTL in milliseconds.
Sourcepub fn load(&mut self, uri: &str) -> Result<&LoadedResource, PachaError>
pub fn load(&mut self, uri: &str) -> Result<&LoadedResource, PachaError>
Sourcepub fn load_fresh(&self, uri: &str) -> Result<LoadedResource, PachaError>
pub fn load_fresh(&self, uri: &str) -> Result<LoadedResource, PachaError>
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear the cache.
Auto Trait Implementations§
impl<C> Freeze for RemotePachaLoader<C>where
C: Freeze,
impl<C> RefUnwindSafe for RemotePachaLoader<C>where
C: RefUnwindSafe,
impl<C> Send for RemotePachaLoader<C>
impl<C> Sync for RemotePachaLoader<C>
impl<C> Unpin for RemotePachaLoader<C>where
C: Unpin,
impl<C> UnsafeUnpin for RemotePachaLoader<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for RemotePachaLoader<C>where
C: UnwindSafe,
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