libsftpman/model/mount_state.rs
1use super::filesystem_mount_definition::FilesystemMountDefinition;
2
3#[derive(Debug, Clone)]
4pub struct MountState {
5 pub definition: FilesystemMountDefinition,
6
7 /// Tells if the filesystem is currently mounted.
8 pub mounted: bool,
9}
10
11impl MountState {
12 pub fn new(definition: FilesystemMountDefinition, mounted: bool) -> Self {
13 Self {
14 definition,
15 mounted,
16 }
17 }
18}