Skip to main content

Device

Struct Device 

Source
pub struct Device { /* private fields */ }

Implementations§

Source§

impl Device

Source

pub fn new(inner: Device) -> Self

Source

pub fn system_dir(&self) -> PathBuf

Source

pub fn samplic_dir(&self) -> PathBuf

Source

pub fn data_dir(&self) -> PathBuf

Source

pub fn config_dir(&self) -> PathBuf

Source

pub fn units_dir(&self) -> PathBuf

Source

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

Source

pub fn translations_dir(&self) -> PathBuf

Source

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

Source

pub fn sample_index_file(&self) -> PathBuf

Source

pub fn samples_dir(&self) -> PathBuf

Source

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

Source

pub fn sample_metadata_dir(&self, sample_id: Uuid) -> PathBuf

Source

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

Source

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

Source

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

Source

pub fn measurement_metadata_dir( &self, sample_id: Uuid, measurement_index: usize, ) -> PathBuf

Source

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

Source

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

Source

pub fn curve_dir( &self, sample_id: Uuid, measurement_index: usize, curve_id: &str, ) -> PathBuf

Source

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

Source

pub fn results_dir(&self, sample_id: Uuid, measurement_index: usize) -> PathBuf

Source

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

Source

pub fn description_dir(&self) -> PathBuf

Source

pub fn samplings_dir(&self) -> PathBuf

Source

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

Source

pub fn device_dir(&self) -> PathBuf

Source

pub fn device_samplic_dir(&self) -> PathBuf

Source

pub fn device_description_file(&self) -> PathBuf

Source

pub fn system_profiles_dir(&self) -> PathBuf

Source

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

Source

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

Source

pub fn user_profiles_dir(&self) -> PathBuf

Source

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

Source

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

Source

pub fn images_dir(&self) -> PathBuf

Source

pub fn icons_dir(&self) -> PathBuf

Source

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

Trait Implementations§

Source§

impl Debug for Device

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl LoadableDevice for Device

Source§

fn load_unit_index(&self) -> Result<IndexSet<String>>

Source§

fn load_unit(&self, unit_id: &str) -> Result<UnitDescription>

Source§

fn load_translation_index(&self) -> Result<IndexSet<String>>

Source§

fn load_translation(&self, translation_id: &str) -> Result<Translation>

Source§

fn load_sample_metadata(&self, sample_id: Uuid) -> Result<SampleMetadata>

Source§

fn load_measurement_metadata( &self, sample_id: Uuid, measurement_index: usize, ) -> Result<MeasurementMetadata>

Source§

fn load_curve( &self, sample_id: Uuid, measurement_index: usize, curve_id: &str, ) -> Result<Curve>

Source§

fn load_curve_index( &self, sample_id: Uuid, measurement_index: usize, ) -> Result<IndexSet<String>>

Source§

fn load_results( &self, sample_id: Uuid, measurement_index: usize, ) -> Result<MeasurementResults>

Source§

fn load_sampling_index(&self) -> Result<IndexSet<String>>

Source§

fn load_measurement_index(&self, sample_id: Uuid) -> Result<IndexSet<usize>>

Source§

fn load_sample_index(&self) -> Result<IndexSet<Uuid>>

Source§

fn load_device_description(&self) -> Result<DeviceDescription>

Source§

fn load_system_profile(&self, profile_id: Uuid) -> Result<ProfileDescription>

Source§

fn load_system_profile_index(&self) -> Result<IndexSet<Uuid>>

Source§

fn load_user_profile(&self, profile_id: Uuid) -> Result<ProfileDescription>

Source§

fn load_user_profile_index(&self) -> Result<IndexSet<Uuid>>

Source§

fn load_sampling(&self, sampling_id: &str) -> Result<Sampling>

Source§

fn load_icon(&self, icon_id: &str) -> Result<Icon>

Source§

fn load_icon_index(&self) -> Result<IndexSet<String>>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn load_description(&self) -> Result<Description>

Source§

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

Source§

impl StorableDevice for Device

Source§

fn store_user_profile( &mut self, profile_id: Uuid, profile: &ProfileDescription, ) -> Result<()>

Source§

fn store_measurement_metadata( &mut self, sample_id: Uuid, measurement_index: usize, metadata: &MeasurementMetadata, ) -> Result<()>

Source§

fn store_results( &mut self, sample_id: Uuid, measurement_index: usize, results: &MeasurementResults, ) -> Result<()>

Source§

fn store_curve( &mut self, sample_id: Uuid, measurement_index: usize, curve_id: &str, curve: &Curve, ) -> Result<()>

Source§

fn store_measurement( &mut self, sample_id: Uuid, measurement_index: usize, measurement: &Measurement, ) -> Result<()>

Source§

fn store_sample_metadata( &mut self, sample_id: Uuid, metadata: &SampleMetadata, ) -> Result<()>

Source§

fn store_sample(&mut self, sample_id: Uuid, sample: &Sample) -> Result<()>

Source§

fn store_sample_index(&mut self, index: &IndexSet<Uuid>) -> Result<()>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

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

Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>