Skip to main content

PriorityMapping

Trait PriorityMapping 

Source
pub trait PriorityMapping {
    // Required methods
    fn to_native(&self, corba: Priority) -> Option<i32>;
    fn to_corba(&self, native: i32) -> Option<Priority>;
}
Expand description

Maps CORBA priorities to native (OS) priorities and back (RT-CORBA §5.4 PriorityMapping).

Required Methods§

Source

fn to_native(&self, corba: Priority) -> Option<i32>

CORBA priority → native priority. None if not mappable.

Source

fn to_corba(&self, native: i32) -> Option<Priority>

Native priority → CORBA priority. None if not mappable.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§