pub trait ServerExt {
    fn with_fs<P: Into<PathBuf> + Send + 'static>(
        path: P
    ) -> Server<Filesystem, DefaultUser> { ... } }
Expand description

Extension trait purely for construction convenience.

Provided Methods§

Create a new Server with the given filesystem root.

Example
use libunftp::Server;
use unftp_sbe_fs::ServerExt;

let server = Server::with_fs("/srv/ftp");

Implementations on Foreign Types§

Implementors§