Struct rocket_include_static_resources::StaticContextManager [−][src]
pub struct StaticContextManager { pub resources: Mutex<FileResources>, }
Expand description
To monitor the state of static resources.
Fields
resources: Mutex<FileResources>
Implementations
pub fn build<S: AsRef<str>>(
&self,
etag_if_none_match: &EtagIfNoneMatch<'_>,
name: S
) -> StaticResponse
pub fn build<S: AsRef<str>>(
&self,
etag_if_none_match: &EtagIfNoneMatch<'_>,
name: S
) -> StaticResponse
Build a StaticResponse
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StaticContextManager
impl Send for StaticContextManager
impl Sync for StaticContextManager
impl Unpin for StaticContextManager
impl UnwindSafe for StaticContextManager
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.