pub struct RecordLoad {
pub common_fields: Vec<(String, EpicsValue)>,
pub info_tags: Vec<(String, String)>,
}Expand description
What a .db definition carries into the creation sink alongside the record
itself: the dbCommon fields db_loader::apply_fields could not route to
the record’s own field_list, and the record’s info(...) tags.
It exists so that PvDatabase::add_loaded_record receives a record’s
COMPLETE loaded state in one call. A caller cannot add the record and then
apply its .db fields, because the sink runs C’s iocInit passes — whose
result depends on those fields — before the record is reachable at all.
Fields§
§common_fields: Vec<(String, EpicsValue)>dbCommon fields, in .db file order (a later field(UDF,…) wins).
info(key, "value") tags.
Implementations§
Source§impl RecordLoad
impl RecordLoad
Sourcepub fn from_common_fields(common_fields: Vec<(String, EpicsValue)>) -> Self
pub fn from_common_fields(common_fields: Vec<(String, EpicsValue)>) -> Self
The common fields alone — the shape every .db loader path produces
from crate::server::db_loader::apply_fields.
Trait Implementations§
Source§impl Clone for RecordLoad
impl Clone for RecordLoad
Source§fn clone(&self) -> RecordLoad
fn clone(&self) -> RecordLoad
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 RecordLoad
impl Debug for RecordLoad
Source§impl Default for RecordLoad
impl Default for RecordLoad
Source§fn default() -> RecordLoad
fn default() -> RecordLoad
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RecordLoad
impl RefUnwindSafe for RecordLoad
impl Send for RecordLoad
impl Sync for RecordLoad
impl Unpin for RecordLoad
impl UnsafeUnpin for RecordLoad
impl UnwindSafe for RecordLoad
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