pub trait OrgChromiumSpaced {
// Required methods
fn get_free_disk_space(&self, path: &str) -> Result<i64, Error>;
fn get_total_disk_space(&self, path: &str) -> Result<i64, Error>;
fn get_root_device_size(&self) -> Result<i64, Error>;
fn is_quota_supported(&self, path: &str) -> Result<bool, Error>;
fn get_quota_current_space_for_uid(
&self,
path: &str,
uid: u32
) -> Result<i64, Error>;
fn get_quota_current_space_for_gid(
&self,
path: &str,
gid: u32
) -> Result<i64, Error>;
fn get_quota_current_space_for_project_id(
&self,
path: &str,
project_id: u32
) -> Result<i64, Error>;
fn get_quota_current_spaces_for_ids(
&self,
request: Vec<u8>
) -> Result<Vec<u8>, Error>;
fn get_quota_overall_usage(&self, path: &str) -> Result<Vec<u8>, Error>;
fn get_quota_overall_usage_pretty_print(
&self,
path: &str
) -> Result<String, Error>;
fn set_project_id(
&self,
fd: OwnedFd,
project_id: u32
) -> Result<Vec<u8>, Error>;
fn set_project_inheritance_flag(
&self,
fd: OwnedFd,
enable: bool
) -> Result<Vec<u8>, Error>;
}