[][src]Struct actix_web::fs::Directory

pub struct Directory {
    pub base: PathBuf,
    pub path: PathBuf,
}

A directory; responds with the generated directory listing.

Fields

base: PathBuf

Base directory

path: PathBuf

Path of subdirectory to generate listing for

Methods

impl Directory[src]

pub fn new(base: PathBuf, path: PathBuf) -> Directory[src]

Create a new directory

pub fn is_visible(&self, entry: &Result<DirEntry>) -> bool[src]

Is this entry visible from this directory?

Trait Implementations

impl Debug for Directory[src]

Auto Trait Implementations

impl Send for Directory

impl Sync for Directory

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T