pub struct FtpConfig {
pub enabled: bool,
pub port: u16,
pub host: String,
pub passive_ports: (u16, u16),
pub max_connections: usize,
pub timeout_secs: u64,
pub allow_anonymous: bool,
pub fixtures_dir: Option<PathBuf>,
pub virtual_root: PathBuf,
}
Expand description
FTP server configuration
Fields§
§enabled: bool
Enable FTP server
port: u16
Server port
host: String
Host address
passive_ports: (u16, u16)
Passive mode port range
max_connections: usize
Maximum connections
timeout_secs: u64
Connection timeout in seconds
allow_anonymous: bool
Allow anonymous access
fixtures_dir: Option<PathBuf>
Fixtures directory
virtual_root: PathBuf
Virtual root directory
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FtpConfig
impl<'de> Deserialize<'de> for FtpConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FtpConfig
impl RefUnwindSafe for FtpConfig
impl Send for FtpConfig
impl Sync for FtpConfig
impl Unpin for FtpConfig
impl UnwindSafe for FtpConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more