Trait AndroidAutoMainTrait

Source
pub trait AndroidAutoMainTrait {
    // Required method
    fn get_receiver(&mut self) -> Option<Receiver<SendableAndroidAutoMessage>>;

    // Provided method
    fn supports_video(
        &mut self,
    ) -> Option<&mut dyn AndroidAutoVideoChannelTrait> { ... }
}
Expand description

The base trait for crate users to implement

Required Methods§

Source

fn get_receiver(&mut self) -> Option<Receiver<SendableAndroidAutoMessage>>

Retrieve the receiver so that the user can send messages to the android auto compatible device or crate

Provided Methods§

Source

fn supports_video(&mut self) -> Option<&mut dyn AndroidAutoVideoChannelTrait>

This allows the incoming video stream to be processed

Implementors§