Trait unftp_sbe_fs::ServerExt
source · 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§
sourcefn with_fs<P: Into<PathBuf> + Send + 'static>(
path: P
) -> Server<Filesystem, DefaultUser>
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.