pub struct ResolvedDirectory(/* private fields */);Expand description
A directory that StaticFileHandler resolved
from the request path but did not serve a file from — either because no
index file is configured or because the configured index was absent.
When this happens, the handler leaves the conn unhalted and stores the resolved directory in conn state rather than serving it, so a subsequent handler can enumerate the directory and render a listing. The contained path has already passed the handler’s traversal-containment check, so it is guaranteed to be within the served root.
Retrieve it with
StaticConnExt::resolved_directory.
Implementations§
Trait Implementations§
Source§impl Clone for ResolvedDirectory
impl Clone for ResolvedDirectory
Source§fn clone(&self) -> ResolvedDirectory
fn clone(&self) -> ResolvedDirectory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedDirectory
impl RefUnwindSafe for ResolvedDirectory
impl Send for ResolvedDirectory
impl Sync for ResolvedDirectory
impl Unpin for ResolvedDirectory
impl UnsafeUnpin for ResolvedDirectory
impl UnwindSafe for ResolvedDirectory
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