pub struct HttpPreloader {
pub includes: DashSet<Asset>,
pub preloads: DashSet<PreloadableAsset>,
/* private fields */
}Fields§
§includes: DashSet<Asset>§preloads: DashSet<PreloadableAsset>Implementations§
Source§impl HttpPreloader
impl HttpPreloader
pub fn new(esbuild_metafile: Arc<EsbuildMetaFile>) -> Self
pub fn register_input(&self, input_path: &str) -> Option<()>
pub fn register_preload(&self, preload_path: &str) -> Option<()>
Trait Implementations§
Source§impl FromRequest for HttpPreloader
impl FromRequest for HttpPreloader
Source§type Future = Ready<Result<HttpPreloader, <HttpPreloader as FromRequest>::Error>>
type Future = Ready<Result<HttpPreloader, <HttpPreloader as FromRequest>::Error>>
Future that resolves to a
Self. Read moreSource§fn from_request(_: &HttpRequest, _: &mut Payload) -> Self::Future
fn from_request(_: &HttpRequest, _: &mut Payload) -> Self::Future
Create a
Self from request parts asynchronously.Auto Trait Implementations§
impl Freeze for HttpPreloader
impl !RefUnwindSafe for HttpPreloader
impl Send for HttpPreloader
impl Sync for HttpPreloader
impl Unpin for HttpPreloader
impl UnsafeUnpin for HttpPreloader
impl UnwindSafe for HttpPreloader
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