pub trait ServerExt {
// Provided method
fn with_fs<P: Into<PathBuf> + Send + 'static>(
path: P,
) -> ServerBuilder<Filesystem, DefaultUser> { ... }
}Expand description
Extension trait purely for construction convenience.
Provided Methods§
Sourcefn with_fs<P: Into<PathBuf> + Send + 'static>(
path: P,
) -> ServerBuilder<Filesystem, DefaultUser>
fn with_fs<P: Into<PathBuf> + Send + 'static>( path: P, ) -> ServerBuilder<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");Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.