Struct espresso::files::path_context::PathContext
source · pub struct PathContext { /* private fields */ }
Implementations
sourceimpl PathContext
impl PathContext
pub fn matches_path<P: AsRef<Path>>(&self, input_path: P) -> bool
sourcepub fn merge(&self, other: &Self) -> Self
pub fn merge(&self, other: &Self) -> Self
Combines the configuration entries on this context with another.
Useful for overlaying configurations. e.g. Defaults + Configuration.
pub fn get_mime_disposition(&self) -> &Option<HashMap<Mime, DispositionType>>
pub fn get_index_strategy_or_default(&self) -> &IndexStrategy
pub fn get_use_etag_or_default(&self) -> bool
pub fn get_use_last_modifiedor_default(&self) -> bool
pub fn append_headers_to_map(&self, header_map: &mut HeaderMap)
pub fn get_not_found_path(&self) -> &Option<PathBuf>
Trait Implementations
sourceimpl Clone for PathContext
impl Clone for PathContext
sourcefn clone(&self) -> PathContext
fn clone(&self) -> PathContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PathContext
impl Debug for PathContext
sourceimpl TryFrom<&PathConfig> for PathContext
impl TryFrom<&PathConfig> for PathContext
sourceimpl TryFrom<&ServerConfig> for PathContext
impl TryFrom<&ServerConfig> for PathContext
Auto Trait Implementations
impl !RefUnwindSafe for PathContext
impl Send for PathContext
impl Sync for PathContext
impl Unpin for PathContext
impl !UnwindSafe for PathContext
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