pub struct Gauge { /* private fields */ }
Expand description
Gauge
Implementations§
source§impl Gauge
impl Gauge
sourcepub fn open_simconnect<'a>(
&self,
name: &str
) -> Result<Pin<Box<SimConnect<'a>>>, Box<dyn Error>>
pub fn open_simconnect<'a>( &self, name: &str ) -> Result<Pin<Box<SimConnect<'a>>>, Box<dyn Error>>
Send a request to the Microsoft Flight Simulator server to open up communications with a new client.
sourcepub fn create_nanovg(&self) -> Option<Context>
pub fn create_nanovg(&self) -> Option<Context>
Create a NanoVG rendering context. See Context
for more details.
sourcepub fn next_event(&mut self) -> impl Future<Output = Option<MSFSEvent<'_>>> + '_
pub fn next_event(&mut self) -> impl Future<Output = Option<MSFSEvent<'_>>> + '_
Consume the next event from MSFS.
Auto Trait Implementations§
impl !RefUnwindSafe for Gauge
impl !Send for Gauge
impl !Sync for Gauge
impl Unpin for Gauge
impl !UnwindSafe for Gauge
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