Struct static_files_module::StaticFilesHandler
source · pub struct StaticFilesHandler { /* private fields */ }
Expand description
Handler for Pingora’s request_filter
phase
Implementations§
source§impl StaticFilesHandler
impl StaticFilesHandler
sourcepub fn new(conf: StaticFilesConf) -> Result<Self, Box<Error>>
pub fn new(conf: StaticFilesConf) -> Result<Self, Box<Error>>
Creates a new handler with given configuration. This will canonicalize the path to the root directory and might result in an error if that path isn’t accessible.
sourcepub fn conf(&self) -> &StaticFilesConf
pub fn conf(&self) -> &StaticFilesConf
Provides read-only access to the handler’s configuration.
sourcepub fn conf_mut(&mut self) -> &mut StaticFilesConf
pub fn conf_mut(&mut self) -> &mut StaticFilesConf
Provides read-write access to the handler’s configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StaticFilesHandler
impl RefUnwindSafe for StaticFilesHandler
impl Send for StaticFilesHandler
impl Sync for StaticFilesHandler
impl Unpin for StaticFilesHandler
impl UnwindSafe for StaticFilesHandler
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