sftpman 2.0.6

A CLI application and library for managing and mounting sshfs (SFTP) filesystems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::filesystem_mount_definition::FilesystemMountDefinition;

#[derive(Debug, Clone)]
pub struct MountState {
    pub definition: FilesystemMountDefinition,

    /// Tells if the filesystem is currently mounted.
    pub mounted: bool,
}

impl MountState {
    pub fn new(definition: FilesystemMountDefinition, mounted: bool) -> Self {
        Self {
            definition,
            mounted,
        }
    }
}