pub struct SensorBehaviorAdapter { /* private fields */ }Available on crate feature
flux only.Expand description
Adapter for converting sensor events to behavioral session format.
Implementations§
Source§impl SensorBehaviorAdapter
impl SensorBehaviorAdapter
Sourcepub fn new(device_id: String, timezone: String) -> Self
pub fn new(device_id: String, timezone: String) -> Self
Create a new adapter with device and timezone info.
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create with system defaults.
Sourcepub fn convert(&self, session_id: &str, window: &EventWindow) -> BehaviorSession
pub fn convert(&self, session_id: &str, window: &EventWindow) -> BehaviorSession
Convert an event window to a behavior session.
Auto Trait Implementations§
impl Freeze for SensorBehaviorAdapter
impl RefUnwindSafe for SensorBehaviorAdapter
impl Send for SensorBehaviorAdapter
impl Sync for SensorBehaviorAdapter
impl Unpin for SensorBehaviorAdapter
impl UnwindSafe for SensorBehaviorAdapter
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