#[non_exhaustive]pub struct Config {
pub range_min: i32,
pub range_max: i32,
pub clk_src: TempSensorClockSource,
}
Expand description
Rust wrapper for temperature_sensor_config_t
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.range_min: i32
§range_max: i32
§clk_src: TempSensorClockSource
Implementations§
Trait Implementations§
Source§impl From<&Config> for temperature_sensor_config_t
impl From<&Config> for temperature_sensor_config_t
Source§fn from(value: &Config) -> temperature_sensor_config_t
fn from(value: &Config) -> temperature_sensor_config_t
Converts to this type from the input type.
Source§impl From<temperature_sensor_config_t> for Config
impl From<temperature_sensor_config_t> for Config
Source§fn from(value: temperature_sensor_config_t) -> Config
fn from(value: temperature_sensor_config_t) -> Config
Converts to this type from the input type.
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)