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

Extension trait purely for construction convenience.

Provided Methods§

source

fn with_fs<P: Into<PathBuf> + Send + 'static>( path: P ) -> Server<Filesystem, DefaultUser>

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");

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ServerExt for Server<Filesystem, DefaultUser>

Implementors§