Skip to main content

Served

Trait Served 

Source
pub trait Served {
    // Required method
    fn served(self) -> ServedFolder;
}
Expand description

What a served folder is given as: one already made, which keeps its mount, or a bare path — at the edges, the command line and tests — served at /.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Served for &Path

Source§

fn served(self) -> ServedFolder

Made canonical when it exists; a path that doesn’t is kept as given, and nothing resolves inside it.

Source§

impl Served for &PathBuf

Source§

impl Served for PathBuf

Implementors§