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]
U: SyncHandlerAPI<'interface>,
unsafe fn set_sync_handler(
&mut self,
handler: Option<&impl SyncHandlerAPI<'interface>>
)
[src]
&mut self,
handler: Option<&impl SyncHandlerAPI<'interface>>
)
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:
- The new synchronization handler is locked.
- The new synchronization handler is set as the active synchronization handler.
- The old synchronization handler is unlocked.
Safety
Changing the synchronization handler may break some modules, if they depend on a specific synchronization handler.
Implementors
impl<'interface, T> SysAPI<'interface> for T where
T: SysBinding,
[src]
impl<'interface, T> SysAPI<'interface> for T where
T: SysBinding,
[src]fn shutdown(&mut self) -> !
[src]
fn get_sync_handler<U>(&self) -> <U as SyncHandlerAPI<'interface>>::Handler where
U: SyncHandlerAPI<'interface>,
[src]
U: SyncHandlerAPI<'interface>,
unsafe fn set_sync_handler(
&mut self,
handler: Option<&impl SyncHandlerAPI<'interface>>
)
[src]
&mut self,
handler: Option<&impl SyncHandlerAPI<'interface>>
)