Struct msfs::StandaloneModule
source · pub struct StandaloneModule { /* private fields */ }
Implementations§
source§impl StandaloneModule
impl StandaloneModule
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 next_event(
&mut self
) -> impl Future<Output = Option<SimConnectRecv<'_>>> + '_
pub fn next_event( &mut self ) -> impl Future<Output = Option<SimConnectRecv<'_>>> + '_
Consume the next event from MSFS.
Auto Trait Implementations§
impl !RefUnwindSafe for StandaloneModule
impl !Send for StandaloneModule
impl !Sync for StandaloneModule
impl Unpin for StandaloneModule
impl !UnwindSafe for StandaloneModule
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