pub struct StaticContextManager {
pub resources: Mutex<FileResources>,
}
Expand description
To monitor the state of static resources.
Fields
resources: Mutex<FileResources>
Implementations
sourceimpl StaticContextManager
impl StaticContextManager
sourcepub 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.