Struct dis_rust::common::event_id_record::EventIDRecord
source · [−]pub struct EventIDRecord {
pub simulation_address_record: SimulationAddressRecord,
pub event_identifier_field: u16,
}
Expand description
Event ID Record as defined in IEEE 1278.1 standard. Used to communicate the ID of an event during the simulation.
Fields
simulation_address_record: SimulationAddressRecord
event_identifier_field: u16
Implementations
sourceimpl EventIDRecord
impl EventIDRecord
sourcepub fn new(
site_identifier_field: u16,
application_identifier_field: u16,
event_identifier_field: u16
) -> Self
pub fn new(
site_identifier_field: u16,
application_identifier_field: u16,
event_identifier_field: u16
) -> Self
Provides a function to create a new EventIDRecord.
Examples
Creating a new EventIDRecord at site 1, on application 1, with event ID 1:
let event_id_record = EventIDRecord::new{
site_identifier_field: 1,
application_identifier_field: 1
event_identifier_field: 1
};
Trait Implementations
sourceimpl Clone for EventIDRecord
impl Clone for EventIDRecord
sourcefn clone(&self) -> EventIDRecord
fn clone(&self) -> EventIDRecord
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EventIDRecord
impl Debug for EventIDRecord
sourceimpl Default for EventIDRecord
impl Default for EventIDRecord
sourcefn default() -> EventIDRecord
fn default() -> EventIDRecord
Returns the “default value” for a type. Read more
impl Copy for EventIDRecord
Auto Trait Implementations
impl RefUnwindSafe for EventIDRecord
impl Send for EventIDRecord
impl Sync for EventIDRecord
impl Unpin for EventIDRecord
impl UnwindSafe for EventIDRecord
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more