pub struct Device {
pub system_path: PathBuf,
pub config_path: PathBuf,
pub data_path: PathBuf,
pub cache_path: PathBuf,
pub product_id: String,
}
Fields§
§system_path: PathBuf
§config_path: PathBuf
§data_path: PathBuf
§cache_path: PathBuf
§product_id: String
Implementations§
Source§impl Device
impl Device
pub fn system_dir(&self) -> PathBuf
pub fn config_dir(&self) -> PathBuf
pub fn data_dir(&self) -> PathBuf
pub fn cache_dir(&self) -> PathBuf
pub fn samplic_dir(&self) -> PathBuf
pub fn description_dir(&self) -> PathBuf
pub fn description_calibrations_dir(&self) -> PathBuf
pub fn samplings_dir(&self) -> PathBuf
pub fn sampling_dir(&self, sampling_id: &str) -> PathBuf
pub fn description_calibration_dir(&self, calibration_id: &str) -> PathBuf
pub fn device_dir(&self) -> PathBuf
Trait Implementations§
Source§impl LoadableDevice for Device
impl LoadableDevice for Device
type ArnalisaLoadableDevice = Device
type ArnalisamplicLoadableDevice = Device
type OmmuiLoadableDevice = Device
type SamplicLoadableDevice = Device
type XioLoadableDevice = Device
type XiolisaLoadableDevice = Device
fn arnalisa(&self) -> Self::ArnalisaLoadableDevice
fn arnalisamplic(&self) -> Self::ArnalisamplicLoadableDevice
fn ommui(&self) -> Self::OmmuiLoadableDevice
fn samplic(&self) -> Self::SamplicLoadableDevice
fn xio(&self) -> Self::XioLoadableDevice
fn xiolisa(&self) -> Self::XiolisaLoadableDevice
fn load_calibration_description_index(&self) -> Result<IndexSet<String>>
fn load_calibration_description( &self, calibration_id: &str, ) -> Result<CalibrationDescription>
fn load_sampling_index(&self) -> Result<IndexSet<String>>
fn load_sampling(&self, sampling_id: &str) -> Result<Sampling>
fn load_device_description(&self) -> Result<DeviceDescription>
fn load_device(&self) -> Result<Device>
fn load_calibration_descriptions( &self, ) -> Result<IndexMap<String, CalibrationDescription>>
fn load_samplings(&self) -> Result<IndexMap<String, Sampling>>
Source§impl StorableDevice for Device
impl StorableDevice for Device
type OmmuiStorableDevice = Device
type SamplicStorableDevice = Device
fn ommui_storable(&self) -> Self::OmmuiStorableDevice
fn samplic_storable(&self) -> Self::SamplicStorableDevice
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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