[][src]Struct mynewt::hw::sensor::sensor_listener

#[repr(C)]pub struct sensor_listener {
    pub sl_sensor_type: sensor_type_t,
    pub sl_func: sensor_data_func_t,
    pub sl_arg: *mut c_void,
    pub sl_next: sensor_listener__bindgen_ty_1,
}

Fields

sl_sensor_type: sensor_type_tsl_func: sensor_data_func_tsl_arg: *mut c_voidsl_next: sensor_listener__bindgen_ty_1

Trait Implementations

impl Clone for sensor_listener[src]

Implement Clone for sensor_listener, because the SENSOR_LISTENERS initialiser will copy sensor_listener structs

impl Copy for sensor_listener[src]

Implement Copy for sensor_listener, because the SENSOR_LISTENERS initialiser will copy sensor_listener structs

impl Default for sensor_listener[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.