[][src]Struct ommui_data::samplic::filesystem::Device

pub struct Device<'a, P: AsRef<Path>> { /* fields omitted */ }

Methods

impl<'a, P: AsRef<Path>> Device<'a, P>[src]

pub fn new(inner: &'a Device<P>) -> Self[src]

pub fn system_dir(&self) -> PathBuf[src]

pub fn samplic_dir(&self) -> PathBuf[src]

pub fn data_dir(&self) -> PathBuf[src]

pub fn config_dir(&self) -> PathBuf[src]

pub fn units_dir(&self) -> PathBuf[src]

pub fn unit_file(&self, unit_id: &str) -> PathBuf[src]

pub fn translations_dir(&self) -> PathBuf[src]

pub fn translation_file(&self, translation_id: &str) -> PathBuf[src]

pub fn sample_index_file(&self) -> PathBuf[src]

pub fn samples_dir(&self) -> PathBuf[src]

pub fn sample_dir(&self, sample_id: Uuid) -> PathBuf[src]

pub fn sample_metadata_file(&self, sample_id: Uuid) -> PathBuf[src]

pub fn measurements_dir(&self, sample_id: Uuid) -> PathBuf[src]

pub fn measurement_dir(
    &self,
    sample_id: Uuid,
    measurement_index: usize
) -> PathBuf
[src]

pub fn measurement_metadata_file(
    &self,
    sample_id: Uuid,
    measurement_index: usize
) -> PathBuf
[src]

pub fn curves_dir(&self, sample_id: Uuid, measurement_index: usize) -> PathBuf[src]

pub fn curve_file(
    &self,
    sample_id: Uuid,
    measurement_index: usize,
    curve_id: &str
) -> PathBuf
[src]

pub fn results_file(&self, sample_id: Uuid, measurement_index: usize) -> PathBuf[src]

pub fn description_dir(&self) -> PathBuf[src]

pub fn samplings_dir(&self) -> PathBuf[src]

pub fn sampling_file(&self, sampling_id: &str) -> PathBuf[src]

pub fn device_dir(&self) -> PathBuf[src]

pub fn device_samplic_dir(&self) -> PathBuf[src]

pub fn device_description_file(&self) -> PathBuf[src]

pub fn system_profiles_dir(&self) -> PathBuf[src]

pub fn system_profile_dir(&self, profile_id: Uuid) -> PathBuf[src]

pub fn system_profile_file(&self, profile_id: Uuid) -> PathBuf[src]

pub fn user_profiles_dir(&self) -> PathBuf[src]

pub fn user_profile_dir(&self, profile_id: Uuid) -> PathBuf[src]

pub fn user_profile_file(&self, profile_id: Uuid) -> PathBuf[src]

pub fn images_dir(&self) -> PathBuf[src]

pub fn icons_dir(&self) -> PathBuf[src]

pub fn icon_file(&self, icon_id: &str) -> PathBuf[src]

Trait Implementations

impl<'a, P: AsRef<Path>> LoadableDevice for Device<'a, P>[src]

fn load_profile_index(&self) -> Result<IndexSet<Uuid>>[src]

fn load_profile(&self, profile_id: Uuid) -> Result<ProfileDescription>[src]

fn load_units(&self) -> Result<IndexMap<String, UnitDescription>>[src]

fn load_translations(
    &self
) -> Result<IndexMap<String, IndexMap<String, String>>>
[src]

fn load_curves(
    &self,
    sample_id: Uuid,
    measurement_index: usize
) -> Result<IndexMap<String, Curve>>
[src]

fn load_measurement(&self, sample_id: Uuid, index: usize) -> Result<Measurement>[src]

fn load_measurements(
    &self,
    sample_id: Uuid
) -> Result<IndexMap<usize, Measurement>>
[src]

fn load_sample(&self, sample_id: Uuid) -> Result<Sample>[src]

fn load_samples(&self) -> Result<IndexMap<Uuid, Sample>>[src]

fn load_system_profiles(&self) -> Result<IndexMap<Uuid, ProfileDescription>>[src]

fn load_user_profiles(&self) -> Result<IndexMap<Uuid, ProfileDescription>>[src]

fn load_samplings(&self) -> Result<IndexMap<String, Sampling>>[src]

fn load_description(&self) -> Result<Description>[src]

fn load_icons(&self) -> Result<IndexMap<String, String>>[src]

impl<'a, P: AsRef<Path>> StorableDevice for Device<'a, P>[src]

impl<'a, P: Debug + AsRef<Path>> Debug for Device<'a, P>[src]

Auto Trait Implementations

impl<'a, P> Sync for Device<'a, P> where
    P: Sync

impl<'a, P> Send for Device<'a, P> where
    P: Sync

impl<'a, P> Unpin for Device<'a, P>

impl<'a, P> RefUnwindSafe for Device<'a, P> where
    P: RefUnwindSafe

impl<'a, P> UnwindSafe for Device<'a, P> where
    P: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err