pub struct ArbitratorConfig {
pub logical_name: ObisCode,
pub actions: Vec<ActionItem>,
pub permissions_table: Vec<CosemDataType>,
pub weightings_table: Vec<CosemDataType>,
pub most_recent_requests_table: Vec<CosemDataType>,
pub last_outcome: u8,
}Expand description
Configuration structure used to build an Arbitrator object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
actions: Vec<ActionItem>Attribute 2: array of action structures that can be requested.
permissions_table: Vec<CosemDataType>Attribute 3: permissions table (array of bit-strings, one per actor).
weightings_table: Vec<CosemDataType>Attribute 4: weightings table (array).
most_recent_requests_table: Vec<CosemDataType>Attribute 5: most recent requests table (array of bit-strings).
last_outcome: u8Attribute 6: index of the action selected by the last arbitration.
Trait Implementations§
Source§impl Clone for ArbitratorConfig
impl Clone for ArbitratorConfig
Source§fn clone(&self) -> ArbitratorConfig
fn clone(&self) -> ArbitratorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArbitratorConfig
impl Debug for ArbitratorConfig
Source§impl<'de> Deserialize<'de> for ArbitratorConfig
impl<'de> Deserialize<'de> for ArbitratorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ArbitratorConfig
impl RefUnwindSafe for ArbitratorConfig
impl Send for ArbitratorConfig
impl Sync for ArbitratorConfig
impl Unpin for ArbitratorConfig
impl UnsafeUnpin for ArbitratorConfig
impl UnwindSafe for ArbitratorConfig
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