Trait emf_core_base_rs::sys::SysAPI[][src]

pub trait SysAPI<'interface>: SysAPIMin<'interface> {
    fn shutdown(&mut self) -> !;
fn get_sync_handler<U>(&self) -> <U as SyncHandlerAPI<'interface>>::Handler
    where
        U: SyncHandlerAPI<'interface>
;
unsafe fn set_sync_handler(
        &mut self,
        handler: Option<&impl SyncHandlerAPI<'interface>>
    ); }

Idiomatic sys api.

Required methods

fn shutdown(&mut self) -> ![src]

Sends a termination signal.

fn get_sync_handler<U>(&self) -> <U as SyncHandlerAPI<'interface>>::Handler where
    U: SyncHandlerAPI<'interface>, 
[src]

Fetches the active synchronization handler.

Return

The active synchronization handler.

unsafe fn set_sync_handler(
    &mut self,
    handler: Option<&impl SyncHandlerAPI<'interface>>
)
[src]

Sets a new synchronization handler.

The default synchronization handler is used, if handler is Option::None.

Uses

This function can be used by modules, that want to provide a more complex synchronization mechanism than the one presented by the default handler.

Swapping

The swapping occurs in three steps:

  1. The new synchronization handler is locked.
  2. The new synchronization handler is set as the active synchronization handler.
  3. The old synchronization handler is unlocked.

Safety

Changing the synchronization handler may break some modules, if they depend on a specific synchronization handler.

Loading content...

Implementors

impl<'interface, T> SysAPI<'interface> for T where
    T: SysBinding
[src]

Loading content...