Struct ommui_data::client::Device
source · pub struct Device { /* private fields */ }
Implementations
sourceimpl Device
impl Device
pub fn new(baseurl: &str) -> Self
pub fn load_units(&self) -> Result<BTreeMap<String, UnitDescription>>
pub fn load_translations(
&self
) -> Result<BTreeMap<String, BTreeMap<String, String>>>
pub fn load_curves(
&self,
sample_id: &Uuid,
measurement_index: usize
) -> Result<BTreeMap<String, Curve>>
pub fn load_measurement(
&self,
sample_id: &Uuid,
index: usize
) -> Result<Measurement>
pub fn load_measurements(&self, sample_id: &Uuid) -> Result<Vec<Measurement>>
pub fn load_sample(&self, sample_id: &Uuid) -> Result<Sample>
pub fn load_samples(&self) -> Result<BTreeMap<Uuid, Sample>>
pub fn load_profiles(&self) -> Result<BTreeMap<Uuid, ProfileDescription>>
pub fn load_samplings(&self) -> Result<BTreeMap<String, SamplingDescription>>
pub fn load_description(&self) -> Result<Description>
pub fn load_icons(&self) -> Result<BTreeMap<String, String>>
Trait Implementations
sourceimpl LoadableDevice for Device
impl LoadableDevice for Device
fn load_unit_index(&self) -> Result<DirectoryListing>
fn load_unit(&self, unit_id: &str) -> Result<UnitDescription>
fn load_translation_index(&self) -> Result<DirectoryListing>
fn load_translation(&self, translation_id: &str) -> Result<Translation>
fn load_sample_metadata(&self, sample_id: &Uuid) -> Result<SampleMetadata>
fn load_measurement_metadata(
&self,
sample_id: &Uuid,
measurement_index: usize
) -> Result<MeasurementMetadata>
fn load_curve(
&self,
sample_id: &Uuid,
measurement_index: usize,
curve_id: &str
) -> Result<Curve>
fn load_curve_index(
&self,
sample_id: &Uuid,
measurement_index: usize
) -> Result<DirectoryListing>
fn load_results(
&self,
sample_id: &Uuid,
measurement_index: usize
) -> Result<MeasurementResults>
fn load_sampling_index(&self) -> Result<DirectoryListing>
fn load_measurement_index(&self, sample_id: &Uuid) -> Result<DirectoryListing>
fn load_sample_index(&self) -> Result<DirectoryListing>
fn load_device_description(&self) -> Result<DeviceDescription>
fn load_profile(&self, profile_id: &Uuid) -> Result<ProfileDescription>
fn load_profile_index(&self) -> Result<DirectoryListing>
fn load_sampling(&self, sampling_id: &str) -> Result<SamplingDescription>
fn load_icon(&self, icon_id: &str) -> Result<Icon>
fn load_icon_index(&self) -> Result<DirectoryListing>
Auto Trait Implementations
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more