pub struct AndroidAutoIntegration { /* private fields */ }Expand description
Android Auto integration manager
Implementations§
Source§impl AndroidAutoIntegration
impl AndroidAutoIntegration
Sourcepub fn new(config: AndroidAutoConfig) -> Result<Self>
pub fn new(config: AndroidAutoConfig) -> Result<Self>
Create new Android Auto integration
Sourcepub fn disconnect(&self) -> Result<()>
pub fn disconnect(&self) -> Result<()>
Disconnect from Android Auto
Sourcepub fn update_driving_state(&self, state: DrivingState) -> Result<()>
pub fn update_driving_state(&self, state: DrivingState) -> Result<()>
Update driving state
Sourcepub fn process_voice_command(&self, audio_data: &[f32]) -> Result<String>
pub fn process_voice_command(&self, audio_data: &[f32]) -> Result<String>
Process voice command
Get navigation suggestions
Sourcepub fn handle_emergency(&self, emergency_type: &str) -> Result<()>
pub fn handle_emergency(&self, emergency_type: &str) -> Result<()>
Handle emergency situation
Sourcepub fn get_status(&self) -> Result<AndroidAutoStatus>
pub fn get_status(&self) -> Result<AndroidAutoStatus>
Get current status
Sourcepub fn update_sensor_data(
&self,
sensor_type: String,
value: f32,
unit: String,
) -> Result<()>
pub fn update_sensor_data( &self, sensor_type: String, value: f32, unit: String, ) -> Result<()>
Update vehicle sensor data
Sourcepub fn get_performance_metrics(&self) -> Result<AutomotivePerformanceMetrics>
pub fn get_performance_metrics(&self) -> Result<AutomotivePerformanceMetrics>
Get performance metrics
Auto Trait Implementations§
impl Freeze for AndroidAutoIntegration
impl RefUnwindSafe for AndroidAutoIntegration
impl Send for AndroidAutoIntegration
impl Sync for AndroidAutoIntegration
impl Unpin for AndroidAutoIntegration
impl UnsafeUnpin for AndroidAutoIntegration
impl UnwindSafe for AndroidAutoIntegration
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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