mountos-native 0.2.0

Client for the mountOS native filesystem API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Protobuf messages for package mountos.filesystem.v1, generated by build.rs
//! from api/proto/mountos_fs.proto. Method IDs and result types come from
//! the generated ops_gen module, open flags are constants from api/filesystem.yaml.

include!(concat!(env!("OUT_DIR"), "/mountos.filesystem.v1.rs"));

pub use crate::ops_gen::{method, StatfsInfo};

/// Open flags. The low two bits are the access mode, 3 is invalid.
pub mod open_flag {
  pub const READ_ONLY: u32 = 0;
  pub const WRITE_ONLY: u32 = 1;
  pub const READ_WRITE: u32 = 2;
  pub const CREATE: u32 = 64;
  pub const EXCL: u32 = 128;
  pub const TRUNC: u32 = 512;
  pub const APPEND: u32 = 1024;
}